# HG changeset patch # User diego # Date 1177926371 0 # Node ID 0682a125d2864334db2571394c9be23fec1aafc7 # Parent f1e774bb675c3a88f940567a4801460943b4c91e Fix loop condition so it can be run through more than once. patch by Wolfram Gloger, wmglo dent.med.uni-muenchen de reference: [Ffmpeg-devel] buffer underflow messages from the output_example.c diff -r f1e774bb675c -r 0682a125d286 mpeg.c --- a/mpeg.c Mon Apr 30 09:43:29 2007 +0000 +++ b/mpeg.c Mon Apr 30 09:46:11 2007 +0000 @@ -1028,9 +1028,10 @@ for(i=0; inb_streams; i++){ AVStream *st = ctx->streams[i]; StreamInfo *stream = st->priv_data; - PacketDesc *pkt_desc= stream->predecode_packet; + PacketDesc *pkt_desc; - while(pkt_desc && scr > pkt_desc->dts){ //FIXME > vs >= + while((pkt_desc= stream->predecode_packet) + && 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,