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

stefano subversion
Sat Mar 6 20:19:11 CET 2010


Author: stefano
Date: Sat Mar  6 20:19:11 2010
New Revision: 22247

Log:
Use av_get_pict_type_char() in debug code within output_picture2(),
simplify.

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Sat Mar  6 18:45:38 2010	(r22246)
+++ trunk/ffplay.c	Sat Mar  6 20:19:11 2010	(r22247)
@@ -1442,17 +1442,8 @@ static int output_picture2(VideoState *i
     is->video_clock += frame_delay;
 
 #if defined(DEBUG_SYNC) && 0
-    {
-        int ftype;
-        if (src_frame->pict_type == FF_B_TYPE)
-            ftype = 'B';
-        else if (src_frame->pict_type == FF_I_TYPE)
-            ftype = 'I';
-        else
-            ftype = 'P';
         printf("frame_type=%c clock=%0.3f pts=%0.3f\n",
-               ftype, pts, pts1);
-    }
+               av_get_pict_type_char(src_frame->pict_type), pts, pts1);
 #endif
     return queue_picture(is, src_frame, pts, pos);
 }



More information about the ffmpeg-cvslog mailing list