mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavc: free the padded last frame during audio encoding properly
This commit is contained in:
parent
eeeb5c291d
commit
720a1de52f
@ -1245,12 +1245,7 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
|
||||
avpkt->flags |= AV_PKT_FLAG_KEY;
|
||||
|
||||
end:
|
||||
if (padded_frame) {
|
||||
av_freep(&padded_frame->data[0]);
|
||||
if (padded_frame->extended_data != padded_frame->data)
|
||||
av_freep(&padded_frame->extended_data);
|
||||
av_freep(&padded_frame);
|
||||
}
|
||||
av_frame_free(&padded_frame);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user