diff options
author | Alexis Ballier <aballier@gentoo.org> | 2015-10-23 15:23:43 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-10-25 22:43:30 +0100 |
commit | 447b5b278c689b21bbb7b5747c8773145cbd9448 (patch) | |
tree | f50492874123939562f2d45ecc15d65f48300434 /libavcodec/wmadec.c | |
parent | 27eeee76b2546fd313808997b3d07ba9cce94551 (diff) | |
download | ffmpeg-447b5b278c689b21bbb7b5747c8773145cbd9448.tar.gz |
mpegvideo_enc: Fix encoding videos with less frames than the delay of the encoder
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 <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec/wmadec.c')
0 files changed, 0 insertions, 0 deletions