62 #if FF_API_AVFILTERBUFFER
67 AVFilterBuffer *pic =
av_mallocz(
sizeof(AVFilterBuffer));
68 AVFilterBufferRef *picref =
av_mallocz(
sizeof(AVFilterBufferRef));
74 picref->buf->free = ff_avfilter_default_free_buffer;
75 if (!(picref->video =
av_mallocz(
sizeof(AVFilterBufferRefVideoProps))))
78 pic->w = picref->video->w = w;
79 pic->h = picref->video->h = h;
82 picref->perms = perms | AV_PERM_READ;
86 pic->format = picref->format = format;
88 memcpy(pic->data, data, 4*
sizeof(data[0]));
89 memcpy(pic->linesize, linesize, 4*
sizeof(linesize[0]));
90 memcpy(picref->data, pic->data,
sizeof(picref->data));
91 memcpy(picref->linesize, pic->linesize,
sizeof(picref->linesize));
93 pic-> extended_data = pic->data;
94 picref->extended_data = picref->data;
101 if (picref && picref->video)