[FFmpeg-cvslog] vf_overlay: silence warning: X may be used uninitialized in this function

Michael Niedermayer git at videolan.org
Sat Feb 23 12:28:56 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 23 12:10:35 2013 +0100| [cfcab4c50747c2f9ab248bff537058d6d0037e6b] | committer: Michael Niedermayer

vf_overlay: silence warning: X may be used uninitialized in this function

Also ensure that format is valid in query_formats

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cfcab4c50747c2f9ab248bff537058d6d0037e6b
---

 libavfilter/vf_overlay.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index 39220b6..9812255 100644
--- a/libavfilter/vf_overlay.c
+++ b/libavfilter/vf_overlay.c
@@ -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);



More information about the ffmpeg-cvslog mailing list