[FFmpeg-cvslog] r21593 - trunk/ffplay.c

michael subversion
Mon Feb 1 14:03:46 CET 2010


Author: michael
Date: Mon Feb  1 14:03:46 2010
New Revision: 21593

Log:
Make sure the faulty timestamp detection is just done when we have a picture
from the decoder.

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Mon Feb  1 13:31:28 2010	(r21592)
+++ trunk/ffplay.c	Mon Feb  1 14:03:46 2010	(r21593)
@@ -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



More information about the ffmpeg-cvslog mailing list