summaryrefslogtreecommitdiff
path: root/libavcodec/bsf.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-17 22:31:46 +0100
committerJames Almer <jamrial@gmail.com>2020-03-21 18:52:10 -0300
commitd0ba6715d258b5a008f28e85b5684b901f7e2ad2 (patch)
treec683688ce2771dfbeae05ee40872bfe57b0539b5 /libavcodec/bsf.c
parentc8140fe7324f264faacf7395b27e12531d1f13f7 (diff)
downloadffmpeg-d0ba6715d258b5a008f28e85b5684b901f7e2ad2.tar.gz
avcodec/bsf: Don't set defaults for AVClass without options
This happened for AVBSFContext. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/bsf.c')
-rw-r--r--libavcodec/bsf.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c
index 9dbf6a636d..d0e0d46068 100644
--- a/libavcodec/bsf.c
+++ b/libavcodec/bsf.c
@@ -45,8 +45,6 @@ void av_bsf_free(AVBSFContext **pctx)
if (ctx->filter->priv_class && ctx->priv_data)
av_opt_free(ctx->priv_data);
- av_opt_free(ctx);
-
if (ctx->internal)
av_packet_free(&ctx->internal->buffer_pkt);
av_freep(&ctx->internal);
@@ -112,8 +110,6 @@ int av_bsf_alloc(const AVBitStreamFilter *filter, AVBSFContext **pctx)
goto fail;
}
- av_opt_set_defaults(ctx);
-
/* allocate priv data and init private options */
if (filter->priv_data_size) {
ctx->priv_data = av_mallocz(filter->priv_data_size);