aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/me_cmp_init.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-11-19 02:38:52 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-11-23 22:44:09 +0100
commita8d39e8846e9a7cc981094a3e0ede71eb3706d42 (patch)
tree946fa7e8ffb32c13bc4ec197bb039aec044610ea /libavcodec/x86/me_cmp_init.c
parent721305e2804b065f567c04d2aa71704355b2c90e (diff)
downloadffmpeg-a8d39e8846e9a7cc981094a3e0ede71eb3706d42.tar.gz
avcodec/flashsvenc: Change check for first frame
AVCodecContext.frame_number is actually only incremented in case encoding was successfull; if e.g. the ff_alloc_packet() below fails, it won't be incremented and therefore it is possible for the previous_frame buffer to be allocated for multiple first frames, leaking every one except the last. So check for whether there already is a previous frame instead. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/x86/me_cmp_init.c')
0 files changed, 0 insertions, 0 deletions