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

Michael Niedermayer git at videolan.org
Sat Dec 29 18:59:44 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 29 03:20:37 2012 +0100| [53228f47d6892b5c93db3df6c9a77aa88b8b7b5c] | committer: Michael Niedermayer

avf_concat: init pointers to NULL for saftey and to avoid warning of uninitialized use.

Reviewed-by: Nicolas George <nicolas.george at normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 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];



More information about the ffmpeg-cvslog mailing list