lavc/audiotoolboxdec: fix memory leak
authorRodger Combs <rodger.combs@gmail.com>
Tue, 19 Apr 2016 08:44:17 +0000 (03:44 -0500)
committerRodger Combs <rodger.combs@gmail.com>
Tue, 26 Apr 2016 15:35:09 +0000 (10:35 -0500)
libavcodec/audiotoolboxdec.c

index 31e14d4..58d05f8 100644 (file)
@@ -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;