changeset 35318:249053c3da2b

Use a more obvious condition.
author reimar
date Sat, 10 Nov 2012 14:54:38 +0000
parents aa2026fd0c76
children ba51b077d042
files libmpdemux/demux_film.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_film.c	Sat Nov 10 14:53:11 2012 +0000
+++ b/libmpdemux/demux_film.c	Sat Nov 10 14:54:38 2012 +0000
@@ -422,7 +422,7 @@
         // precalculate PTS
         if (!sh_video || film_chunk.syncinfo1 == 0xFFFFFFFF)
         {
-	  if(demuxer->audio->id>=-1)
+	  if(sh_audio)
           film_chunk.pts =
             (float)total_audio_bytes / (float)sh_audio->wf->nAvgBytesPerSec;
           total_audio_bytes += film_chunk.chunk_size;