Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* allocate priv data and init private options */
- if (filter->priv_data_size) {
- ctx->priv_data = av_mallocz(filter->priv_data_size);
- if (!ctx->priv_data) {
- ret = AVERROR(ENOMEM);
- goto fail;
- }
- if (filter->priv_class) {
- *(const AVClass **)ctx->priv_data = filter->priv_class;
- av_opt_set_defaults(ctx->priv_data);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement