vf_overlay: silence warning: X may be used uninitialized in this function
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 23 Feb 2013 11:10:35 +0000 (12:10 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 23 Feb 2013 11:10:35 +0000 (12:10 +0100)
Also ensure that format is valid in query_formats

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_overlay.c

index 39220b6..9812255 100644 (file)
@@ -195,6 +195,8 @@ static int query_formats(AVFilterContext *ctx)
         main_formats    = ff_make_format_list(main_pix_fmts_rgb);
         overlay_formats = ff_make_format_list(overlay_pix_fmts_rgb);
         break;
+    default:
+        av_assert0(0);
     }
 
     ff_formats_ref(main_formats,    &ctx->inputs [MAIN   ]->out_formats);