From 036b9ee1c959d88d5ae7f1df21b2d36ab286b3cc Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michaelni@gmx.at> Date: Tue, 29 Jan 2013 15:57:15 +0100 Subject: [PATCH] oggenc: fix "oggstream may be used uninitialized in this function" warning Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- libavformat/oggenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c index 31e28413e91..3d4519c1acb 100644 --- a/libavformat/oggenc.c +++ b/libavformat/oggenc.c @@ -402,7 +402,7 @@ static int ogg_build_opus_headers(AVCodecContext *avctx, static int ogg_write_header(AVFormatContext *s) { OGGContext *ogg = s->priv_data; - OGGStreamContext *oggstream; + OGGStreamContext *oggstream = NULL; int i, j; if (ogg->pref_size) -- GitLab