[FFmpeg-cvslog] r12133 - trunk/ffmpeg.c

michael subversion
Sun Feb 17 20:38:47 CET 2008


Author: michael
Date: Sun Feb 17 20:38:47 2008
New Revision: 12133

Log:
Print a warning if a decoder produces more than 1 frame of output for
a single frame it got from the demuxer+parser.


Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Sun Feb 17 20:38:47 2008
@@ -1074,6 +1074,9 @@ static int output_packet(AVInputStream *
     handle_eof:
         ist->pts= ist->next_pts;
 
+        if(len && len != pkt->size && verbose>0)
+            fprintf(stderr, "Multiple frames in a packet from stream %d\n", pkt->stream_index);
+
         /* decode the packet if needed */
         data_buf = NULL; /* fail safe */
         data_size = 0;




More information about the ffmpeg-cvslog mailing list