mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-12-11 21:23:42 +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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user