diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index b2a98221cd..d30fc53fc9 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -1028,9 +1028,10 @@ static int remove_decoded_packets(AVFormatContext *ctx, int64_t scr){ 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,