diff options
author | Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> | 2007-04-30 09:43:29 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-04-30 09:43:29 +0000 |
commit | 268fc08290a0d55461d11d81ec2244c26047480d (patch) | |
tree | 7a73b58d5d9af0c71ba2aadbbba7030be4821fc8 /libavformat/mpeg.c | |
parent | 2da0d70d5eebe42f9fcd27ee554419ebe2a5da06 (diff) | |
download | ffmpeg-268fc08290a0d55461d11d81ec2244c26047480d.tar.gz |
more detailed error message for buffer underflow
patch by Wolfram Gloger, wmglo dent.med.uni-muenchen de
Originally committed as revision 8859 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r-- | libavformat/mpeg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 07763c7c2d..b2a98221cd 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -1033,7 +1033,9 @@ static int remove_decoded_packets(AVFormatContext *ctx, int64_t scr){ 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; |