vf_mp: check list in querry_format()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Oct 2012 17:51:33 +0000 (19:51 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Oct 2012 17:59:38 +0000 (19:59 +0200)
Fixes CID717772
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_mp.c

index 377a8b5..e31fccd 100644 (file)
@@ -787,6 +787,9 @@ static int query_formats(AVFilterContext *ctx)
         }
     }
 
+    if (!avfmts)
+        return -1;
+
     //We assume all allowed input formats are also allowed output formats
     ff_set_common_formats(ctx, avfmts);
     return 0;