[FFmpeg-devel] [PATCH 1/2] lavc/audiotoolboxdec: fix memory leak
Rodger Combs
rodger.combs at gmail.com
Tue Apr 19 10:50:50 CEST 2016
---
libavcodec/audiotoolboxdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c
index 31e14d4..58d05f8 100644
--- a/libavcodec/audiotoolboxdec.c
+++ b/libavcodec/audiotoolboxdec.c
@@ -414,6 +414,7 @@ static OSStatus ffat_decode_callback(AudioConverterRef converter, UInt32 *nb_pac
return 0;
}
+ av_packet_unref(&at->in_pkt);
av_packet_move_ref(&at->in_pkt, &at->new_in_pkt);
at->new_in_pkt.data = 0;
at->new_in_pkt.size = 0;
--
2.7.3
More information about the ffmpeg-devel
mailing list