From 2b2929fc9317c24c78c44756a83153cb05861c64 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 11 Dec 2010 19:32:23 +0000 Subject: demux_demuxers: Fix crash with -audiofile and audio disabled git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32691 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_demuxers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpdemux/demux_demuxers.c b/libmpdemux/demux_demuxers.c index 3de307db0f..54fe5c1b01 100644 --- a/libmpdemux/demux_demuxers.c +++ b/libmpdemux/demux_demuxers.c @@ -113,7 +113,7 @@ static void demux_demuxers_seek(demuxer_t *demuxer,float rel_seek_secs,float aud pos = demuxer->video->first->pts; } - if(priv->ad != priv->vd) { + if(priv->ad != priv->vd && demuxer->audio->sh) { sh_audio_t* sh = demuxer->audio->sh; demux_seek(priv->ad,pos,audio_delay,1); // In case the demuxer don't set pts -- cgit v1.2.3