Andrew mod to ignore opus extras + title plugin X11 RGBA-FLOAT fix
[goodguy/cinelerra.git] / cinelerra-5.1 / thirdparty / src / ffmpeg.git.patch8
1 diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
2 index 9bd0a555d4..111a9f3a46 100644
3 --- a/libavformat/mpegenc.c
4 +++ b/libavformat/mpegenc.c
5 @@ -976,9 +976,9 @@ static int remove_decoded_packets(AVFormatContext *ctx, int64_t scr)
6          PacketDesc *pkt_desc;
7  
8          while ((pkt_desc = stream->predecode_packet) &&
9 +               pkt_desc != stream->premux_packet &&
10                 scr > pkt_desc->dts) { // FIXME: > vs >=
11 -            if (stream->buffer_index < pkt_desc->size ||
12 -                stream->predecode_packet == stream->premux_packet) {
13 +            if (stream->buffer_index < pkt_desc->size) {
14                  av_log(ctx, AV_LOG_ERROR,
15                         "buffer underflow st=%d bufi=%d size=%d\n",
16                         i, stream->buffer_index, pkt_desc->size);