---
 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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to