1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-31 18:44:44 +03:00
Files
ffmpeg/libavcodec/encode.c
James Almer 0271098e6c avcodec/encode: unref the packet on AVCodec.receive_packet() failure
Fixes memleaks with some encoders that don't unref the packet before
returning.
This is consistent with the behavior of AVCodec.encode()
implementations in encode_simple_internal().

Found-by: mkver
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: James Almer <jamrial@gmail.com>
2020-09-01 10:05:05 -03:00

14 KiB