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