This happened for AVBSFContext.
Unified · Split
| @@ -45,8 +45,6 @@ void av_bsf_free(AVBSFContext **pctx) · 44 unmodified lines | ||
| 45 | 45 | if (ctx->filter->priv_class && ctx->priv_data) |
| 46 | 46 | av_opt_free(ctx->priv_data); |
| 47 | 47 | |
| 48 | − av_opt_free(ctx); | |
| 49 | − | |
| 50 | 48 | if (ctx->internal) |
| 51 | 49 | av_packet_free(&ctx->internal->buffer_pkt); |
| 52 | 50 | av_freep(&ctx->internal); |
| @@ -112,8 +110,6 @@ int av_bsf_alloc(const AVBitStreamFilter *filter, AVBSFContext **pctx) · 59 unmodified lines | ||
| 112 | 110 | goto fail; |
| 113 | 111 | } |
| 114 | 112 | |
| 115 | − av_opt_set_defaults(ctx); | |
| 116 | − | |
| 117 | 113 | /* allocate priv data and init private options */ |
| 118 | 114 | if (filter->priv_data_size) { |
| 119 | 115 | ctx->priv_data = av_mallocz(filter->priv_data_size); |