[SCM] libav/experimental: Make sure the faulty timestamp detection is just done when we have a picture from the decoder.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:59:16 UTC 2013
The following commit has been merged in the experimental branch:
commit 99e0b12bd7b4f755fb8ca6b49ab7fcddce51ffd1
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Mon Feb 1 13:03:46 2010 +0000
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
diff --git a/ffplay.c b/ffplay.c
index 6bf76a7..ea60d5d 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list