]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/avfilter: Add a few more basic filters to the list which support frame size...
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 Sep 2015 09:43:27 +0000 (11:43 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 Sep 2015 09:43:27 +0000 (11:43 +0200)
Fixes assertion failures

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/avfilter.c

index 4d833f0544f243554d64bfa26d6da9dfcd3b6453..843ac98919ec13022eee7a2d18deeef05d14d739 100644 (file)
@@ -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);