aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libx264.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-15 01:49:06 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-28 16:56:40 +0200
commit1c7f252783aec37e4ff8049476386f63afe91756 (patch)
tree94fd06f71dd18057e38bfcb5d1e64825e2b721fd /libavcodec/libx264.c
parent1ab74bc19354aedfb9afe71515952254753a75cc (diff)
downloadffmpeg-1c7f252783aec37e4ff8049476386f63afe91756.tar.gz
avcodec: Remove redundant freeing of extradata of encoders
AVCodecContext.extradata is freed generically by libavcodec for encoders, so it is unnecessary for an encoder to do it on its own. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r--libavcodec/libx264.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 2bed61f91e..22c91d8df7 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -497,7 +497,6 @@ static av_cold int X264_close(AVCodecContext *avctx)
{
X264Context *x4 = avctx->priv_data;
- av_freep(&avctx->extradata);
av_freep(&x4->sei);
av_freep(&x4->reordered_opaque);