Mercurial > mplayer.hg
comparison libmpdemux/demux_film.c @ 35318:249053c3da2b
Use a more obvious condition.
author | reimar |
---|---|
date | Sat, 10 Nov 2012 14:54:38 +0000 |
parents | 2b211b058ee2 |
children | 2398517e5bda |
comparison
equal
deleted
inserted
replaced
35317:aa2026fd0c76 | 35318:249053c3da2b |
---|---|
420 } | 420 } |
421 | 421 |
422 // precalculate PTS | 422 // precalculate PTS |
423 if (!sh_video || film_chunk.syncinfo1 == 0xFFFFFFFF) | 423 if (!sh_video || film_chunk.syncinfo1 == 0xFFFFFFFF) |
424 { | 424 { |
425 if(demuxer->audio->id>=-1) | 425 if(sh_audio) |
426 film_chunk.pts = | 426 film_chunk.pts = |
427 (float)total_audio_bytes / (float)sh_audio->wf->nAvgBytesPerSec; | 427 (float)total_audio_bytes / (float)sh_audio->wf->nAvgBytesPerSec; |
428 total_audio_bytes += film_chunk.chunk_size; | 428 total_audio_bytes += film_chunk.chunk_size; |
429 } | 429 } |
430 else | 430 else |