[Ffmpeg-cvslog] r8860 - trunk/libavformat/mpeg.c
diego
subversion
Mon Apr 30 11:46:11 CEST 2007
Author: diego
Date: Mon Apr 30 11:46:11 2007
New Revision: 8860
Log:
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
Modified:
trunk/libavformat/mpeg.c
Modified: trunk/libavformat/mpeg.c
==============================================================================
--- trunk/libavformat/mpeg.c (original)
+++ trunk/libavformat/mpeg.c Mon Apr 30 11:46:11 2007
@@ -1028,9 +1028,10 @@ static int remove_decoded_packets(AVForm
for(i=0; i<ctx->nb_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,
More information about the ffmpeg-cvslog
mailing list