diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-15 01:49:06 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-28 16:56:40 +0200 |
commit | 1c7f252783aec37e4ff8049476386f63afe91756 (patch) | |
tree | 94fd06f71dd18057e38bfcb5d1e64825e2b721fd /libavcodec/libkvazaar.c | |
parent | 1ab74bc19354aedfb9afe71515952254753a75cc (diff) | |
download | ffmpeg-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/libkvazaar.c')
-rw-r--r-- | libavcodec/libkvazaar.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c index 54788e154b..14eabe4e05 100644 --- a/libavcodec/libkvazaar.c +++ b/libavcodec/libkvazaar.c @@ -156,9 +156,6 @@ static av_cold int libkvazaar_close(AVCodecContext *avctx) ctx->api->config_destroy(ctx->config); } - if (avctx->extradata) - av_freep(&avctx->extradata); - return 0; } |