Commit 5d859e59 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/avfilter: Add a few more basic filters to the list which support frame size changes

Fixes assertion failures
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent da8eb70d
......@@ -1161,8 +1161,11 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
/* Consistency checks */
if (link->type == AVMEDIA_TYPE_VIDEO) {
if (strcmp(link->dst->filter->name, "scale") &&
strcmp(link->dst->filter->name, "idet")) {
if (strcmp(link->dst->filter->name, "buffersink") &&
strcmp(link->dst->filter->name, "format") &&
strcmp(link->dst->filter->name, "idet") &&
strcmp(link->dst->filter->name, "null") &&
strcmp(link->dst->filter->name, "scale")) {
av_assert1(frame->format == link->format);
av_assert1(frame->width == link->w);
av_assert1(frame->height == link->h);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment