mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-31 11:53:24 +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 >=
|
while(pkt_desc && scr > pkt_desc->dts){ //FIXME > vs >=
|
||||||
if(stream->buffer_index < pkt_desc->size ||
|
if(stream->buffer_index < pkt_desc->size ||
|
||||||
stream->predecode_packet == stream->premux_packet){
|
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;
|
break;
|
||||||
}
|
}
|
||||||
stream->buffer_index -= pkt_desc->size;
|
stream->buffer_index -= pkt_desc->size;
|
||||||
|
Loading…
Reference in New Issue
Block a user