On 23/10/15 15:23, Vittorio Giovara wrote: > From: Alexis Ballier <[email protected]> > > 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 encoder has finished, while it has not encoded any frame. > > Signed-off-by: Vittorio Giovara <[email protected]> > --- > libavcodec/mpegvideo_enc.c | 16 ++++++++++++---- > 1 file changed, 12 insertions(+), 4 deletions(-)
Probably Ok, shift is a confusing name, flush_offset probably would be more descriptive. lu _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
