[Ffmpeg-cvslog] r8859 - trunk/libavformat/mpeg.c

diego subversion
Mon Apr 30 11:43:30 CEST 2007


Author: diego
Date: Mon Apr 30 11:43:29 2007
New Revision: 8859

Log:
more detailed error message for buffer underflow  
patch by Wolfram Gloger, wmglo dent.med.uni-muenchen de


Modified:
   trunk/libavformat/mpeg.c

Modified: trunk/libavformat/mpeg.c
==============================================================================
--- trunk/libavformat/mpeg.c	(original)
+++ trunk/libavformat/mpeg.c	Mon Apr 30 11:43:29 2007
@@ -1033,7 +1033,9 @@ static int remove_decoded_packets(AVForm
         while(pkt_desc && scr > pkt_desc->dts){ //FIXME > vs >=
             if(stream->buffer_index < pkt_desc->size ||
                stream->predecode_packet == stream->premux_packet){
-                av_log(ctx, AV_LOG_ERROR, "buffer underflow\n");
+                av_log(ctx, AV_LOG_ERROR,
+                       "buffer underflow i=%d bufi=%d size=%d\n",
+                       i, stream->buffer_index, pkt_desc->size);
                 break;
             }
             stream->buffer_index -= pkt_desc->size;




More information about the ffmpeg-cvslog mailing list