changeset 2062:f1e774bb675c libavformat

more detailed error message for buffer underflow patch by Wolfram Gloger, wmglo dent.med.uni-muenchen de
author diego
date Mon, 30 Apr 2007 09:43:29 +0000
parents f5df68594b30
children 0682a125d286
files mpeg.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg.c	Sat Apr 28 13:07:52 2007 +0000
+++ b/mpeg.c	Mon Apr 30 09:43:29 2007 +0000
@@ -1033,7 +1033,9 @@
         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;