comparison mpeg.c @ 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 a3e79d6e4e3c
children 0682a125d286
comparison
equal deleted inserted replaced
2061:f5df68594b30 2062:f1e774bb675c
1031 PacketDesc *pkt_desc= stream->predecode_packet; 1031 PacketDesc *pkt_desc= stream->predecode_packet;
1032 1032
1033 while(pkt_desc && scr > pkt_desc->dts){ //FIXME > vs >= 1033 while(pkt_desc && scr > pkt_desc->dts){ //FIXME > vs >=
1034 if(stream->buffer_index < pkt_desc->size || 1034 if(stream->buffer_index < pkt_desc->size ||
1035 stream->predecode_packet == stream->premux_packet){ 1035 stream->predecode_packet == stream->premux_packet){
1036 av_log(ctx, AV_LOG_ERROR, "buffer underflow\n"); 1036 av_log(ctx, AV_LOG_ERROR,
1037 "buffer underflow i=%d bufi=%d size=%d\n",
1038 i, stream->buffer_index, pkt_desc->size);
1037 break; 1039 break;
1038 } 1040 }
1039 stream->buffer_index -= pkt_desc->size; 1041 stream->buffer_index -= pkt_desc->size;
1040 1042
1041 stream->predecode_packet= pkt_desc->next; 1043 stream->predecode_packet= pkt_desc->next;