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