mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/155/head
parent
27eeee76b2
commit
447b5b278c
1 changed files with 16 additions and 4 deletions
Loading…
Reference in new issue