[FFmpeg-cvslog] lavfi/vf_overlay: fix unitialized pointers

Ganesh Ajjanagadde git at videolan.org
Thu Dec 10 13:54:19 CET 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Thu Dec 10 07:52:19 2015 -0500| [08a96708a504cc305eb4d8b98020e76a36b8cdab] | committer: Ganesh Ajjanagadde

lavfi/vf_overlay: fix unitialized pointers

Missed in commit 301c2784b35036945cd9a7049808deecce149916.

Found-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

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

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

diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index 502fde0..7457820 100644
--- a/libavfilter/vf_overlay.c
+++ b/libavfilter/vf_overlay.c
@@ -245,8 +245,8 @@ static int query_formats(AVFilterContext *ctx)
         AV_PIX_FMT_NONE
     };
 
-    AVFilterFormats *main_formats;
-    AVFilterFormats *overlay_formats;
+    AVFilterFormats *main_formats = NULL;
+    AVFilterFormats *overlay_formats = NULL;
     int ret;
 
     switch (s->format) {



More information about the ffmpeg-cvslog mailing list