[FFmpeg-devel] [PATCH] avcodec/encode: unref the packet on AVCodec.receive_packet() failure

James Almer jamrial at gmail.com
Tue Sep 1 16:06:22 EEST 2020


On 9/1/2020 9:14 AM, Anton Khirnov wrote:
> Quoting James Almer (2020-08-31 04:59:54)
>> 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
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>>  libavcodec/encode.c | 4 +++-
>>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> Looks ok.

Applied, thanks.


More information about the ffmpeg-devel mailing list