mirror of https://github.com/FFmpeg/FFmpeg.git
Calling avcodec_flush_buffers() and then avcodec_decode_video2() with a 0-sized packet (to get remaining buffered frames) could incorrectly return an old frame from before the avcodec_flush_buffers() call. Add a loop in ff_thread_flush() to zero the got_frame field of each thread to ensure the old frames will not be returned. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>pull/3/merge
parent
7b60799aa8
commit
05b9a89ed7
1 changed files with 3 additions and 0 deletions
Loading…
Reference in new issue