mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-06 12:37:44 +00: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;
|
avpkt->flags |= AV_PKT_FLAG_KEY;
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (padded_frame) {
|
av_frame_free(&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);
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user