History

avcodec/bsf: Don't set defaults for AVClass without options

This happened for AVBSFContext.

Andreas Rheinhardt committed 6 years ago

Commit d0ba6711 parent c8140fe1 file · +0 −4Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/bsf.c+0−4
@@ -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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t