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
4545 if (ctx->filter->priv_class && ctx->priv_data)
4646 av_opt_free(ctx->priv_data);
4747
48− av_opt_free(ctx);
49−
5048 if (ctx->internal)
5149 av_packet_free(&ctx->internal->buffer_pkt);
5250 av_freep(&ctx->internal);
@@ -112,8 +110,6 @@ int av_bsf_alloc(const AVBitStreamFilter *filter, AVBSFContext **pctx) · 59 unmodified lines
112110 goto fail;
113111 }
114112
115− av_opt_set_defaults(ctx);
116−
117113 /* allocate priv data and init private options */
118114 if (filter->priv_data_size) {
119115 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