[FFmpeg-devel] [PATCH] avf_concat: init pointers to NULL for saftey and to avoid warning of uninitialized use.

Michael Niedermayer michaelni at gmx.at
Sat Dec 29 03:24:14 CET 2012


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavfilter/avf_concat.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/avf_concat.c b/libavfilter/avf_concat.c
index 6be2c53..079d55d 100644
--- a/libavfilter/avf_concat.c
+++ b/libavfilter/avf_concat.c
@@ -78,8 +78,8 @@ static int query_formats(AVFilterContext *ctx)
 {
     ConcatContext *cat = ctx->priv;
     unsigned type, nb_str, idx0 = 0, idx, str, seg;
-    AVFilterFormats *formats, *rates;
-    AVFilterChannelLayouts *layouts;
+    AVFilterFormats *formats, *rates = NULL;
+    AVFilterChannelLayouts *layouts = NULL;
 
     for (type = 0; type < TYPE_ALL; type++) {
         nb_str = cat->nb_streams[type];
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list