mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 04:30:02 +00:00
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
This commit is contained in:
parent
2da0d70d5e
commit
268fc08290
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user