[FFmpeg-cvslog] lavc/audiotoolboxdec: fix memory leak
Rodger Combs
git at videolan.org
Tue Apr 26 17:36:10 CEST 2016
ffmpeg | branch: master | Rodger Combs <rodger.combs at gmail.com> | Tue Apr 19 03:44:17 2016 -0500| [95116bf35f1bbc15a41be67f70f31b8de6075b8f] | committer: Rodger Combs
lavc/audiotoolboxdec: fix memory leak
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=95116bf35f1bbc15a41be67f70f31b8de6075b8f
---
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;
More information about the ffmpeg-cvslog
mailing list