Re: [FFmpeg-devel] [PATCH 2/2] libavcodec/mpegvideo_enc.c: Fix encoding videos with less frames than the delay of the encoder.

2015-10-19 Thread Alexis Ballier
On Sun, 18 Oct 2015 12:09:48 +0200 Michael Niedermayer wrote: > On Fri, Oct 16, 2015 at 10:42:33AM +0200, Alexis Ballier wrote: > > When the encoder is fed with less frames than its delay, the > > picture list looks like { NULL, NULL, ..., frame, frame, frame }. > > When

Re: [FFmpeg-devel] [PATCH 2/2] libavcodec/mpegvideo_enc.c: Fix encoding videos with less frames than the delay of the encoder.

2015-10-18 Thread Michael Niedermayer
On Fri, Oct 16, 2015 at 10:42:33AM +0200, Alexis Ballier wrote: > When the encoder is fed with less frames than its delay, the picture list > looks like { NULL, NULL, ..., frame, frame, frame }. When flushing the > encoder (input frame == NULL), we need to ensure the picture list is shifted >

[FFmpeg-devel] [PATCH 2/2] libavcodec/mpegvideo_enc.c: Fix encoding videos with less frames than the delay of the encoder.

2015-10-16 Thread Alexis Ballier
When the encoder is fed with less frames than its delay, the picture list looks like { NULL, NULL, ..., frame, frame, frame }. When flushing the encoder (input frame == NULL), we need to ensure the picture list is shifted enough so that we do not return an empty packet, which would mean the