Commit 268fc082 authored by Wolfram Gloger's avatar Wolfram Gloger Committed by Diego Biurrun

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
parent 2da0d70d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment