alternative shortcuts; cd cinelerra-5.1; patch -p1 -i alt_shortcuts.patch
[goodguy/cinelerra.git] / cinelerra-5.1 / thirdparty / src / ffmpeg.git.patch9
1 --- a/libavformat/mpegenc.c
2 +++ b/libavformat/mpegenc.c
3 @@ -977,9 +977,9 @@
4          PacketDesc *pkt_desc;
5  
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);