lavc/audiotoolboxdec: fix memory leak

This commit is contained in:
Rodger Combs 2016-04-19 03:44:17 -05:00
parent 0cb19c30c6
commit 95116bf35f
No known key found for this signature in database
GPG Key ID: E3E54DCDCD3CB843

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