diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-01 13:03:46 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-01 13:03:46 +0000 |
commit | 99e0b12bd7b4f755fb8ca6b49ab7fcddce51ffd1 (patch) | |
tree | 672245039932c101e8e39a23e23a1022add20059 | |
parent | f7119e42e11f4cac07ad30ddd21b6f77e7f65978 (diff) | |
download | ffmpeg-99e0b12bd7b4f755fb8ca6b49ab7fcddce51ffd1.tar.gz |
Make sure the faulty timestamp detection is just done when we have a picture
from the decoder.
Originally committed as revision 21593 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1375,6 +1375,7 @@ static int video_thread(void *arg) frame, &got_picture, pkt); + if (got_picture) { if(pkt->dts != AV_NOPTS_VALUE){ is->faulty_dts += pkt->dts <= is->last_dts_for_fault_detection; is->last_dts_for_fault_detection= pkt->dts; @@ -1383,6 +1384,7 @@ static int video_thread(void *arg) is->faulty_pts += frame->reordered_opaque <= is->last_pts_for_fault_detection; is->last_pts_for_fault_detection= frame->reordered_opaque; } + } if( ( decoder_reorder_pts==1 || decoder_reorder_pts && is->faulty_pts<is->faulty_dts |