mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-22 23:33:11 +00:00
lavc/audiotoolboxdec: fix memory leak
This commit is contained in:
parent
0cb19c30c6
commit
95116bf35f
@ -414,6 +414,7 @@ static OSStatus ffat_decode_callback(AudioConverterRef converter, UInt32 *nb_pac
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
av_packet_unref(&at->in_pkt);
|
||||||
av_packet_move_ref(&at->in_pkt, &at->new_in_pkt);
|
av_packet_move_ref(&at->in_pkt, &at->new_in_pkt);
|
||||||
at->new_in_pkt.data = 0;
|
at->new_in_pkt.data = 0;
|
||||||
at->new_in_pkt.size = 0;
|
at->new_in_pkt.size = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user