summaryrefslogtreecommitdiff
path: root/libavcodec/screenpresso.c
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-10-23 15:23:43 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-10-25 22:43:30 +0100
commit447b5b278c689b21bbb7b5747c8773145cbd9448 (patch)
treef50492874123939562f2d45ecc15d65f48300434 /libavcodec/screenpresso.c
parent27eeee76b2546fd313808997b3d07ba9cce94551 (diff)
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/screenpresso.c')
0 files changed, 0 insertions, 0 deletions