changeset 32604:3ba59e647e58

Fix crahs with -audiofile and audio disabled.
author reimar
date Sat, 11 Dec 2010 19:32:23 +0000
parents 02830ab7afb7
children 7b4f8ecdc33b
files libmpdemux/demux_demuxers.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_demuxers.c	Sat Dec 11 18:37:00 2010 +0000
+++ b/libmpdemux/demux_demuxers.c	Sat Dec 11 19:32:23 2010 +0000
@@ -112,7 +112,7 @@
       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