Advertisement
Guest User

Untitled

a guest
May 1st, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. /* allocate priv data and init private options */
  2. if (filter->priv_data_size) {
  3. ctx->priv_data = av_mallocz(filter->priv_data_size);
  4. if (!ctx->priv_data) {
  5. ret = AVERROR(ENOMEM);
  6. goto fail;
  7. }
  8. if (filter->priv_class) {
  9. *(const AVClass **)ctx->priv_data = filter->priv_class;
  10. av_opt_set_defaults(ctx->priv_data);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement