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>
Showing
Please register or sign in to comment