[SCM] libav/experimental: Print a warning if a decoder produces more than 1 frame of output for a single frame it got from the demuxer+parser.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:15:09 UTC 2013


The following commit has been merged in the experimental branch:
commit 40cb57a287977f8b88657abf30e8787477d6c448
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Sun Feb 17 19:38:47 2008 +0000

    Print a warning if a decoder produces more than 1 frame of output for
    a single frame it got from the demuxer+parser.
    
    Originally committed as revision 12133 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffmpeg.c b/ffmpeg.c
index 6a156dc..cd47b20 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1074,6 +1074,9 @@ static int output_packet(AVInputStream *ist, int ist_index,
     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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list