1 --- a/libavformat/mpegenc.c
2 +++ b/libavformat/mpegenc.c
6 while ((pkt_desc = stream->predecode_packet) &&
7 + pkt_desc != stream->premux_packet &&
8 scr > pkt_desc->dts) { // FIXME: > vs >=
9 - if (stream->buffer_index < pkt_desc->size ||
10 - stream->predecode_packet == stream->premux_packet) {
11 + if (stream->buffer_index < pkt_desc->size) {
12 av_log(ctx, AV_LOG_ERROR,
13 "buffer underflow st=%d bufi=%d size=%d\n",
14 i, stream->buffer_index, pkt_desc->size);