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