aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/oggenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-29 15:57:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-29 15:57:42 +0100
commit036b9ee1c959d88d5ae7f1df21b2d36ab286b3cc (patch)
treebd8e22198b5a89b526aee318c5d806c0f9a9ae2b /libavformat/oggenc.c
parent5068bcda95c2a53a9b27d096e52f72f9bac62c8b (diff)
downloadffmpeg-036b9ee1c959d88d5ae7f1df21b2d36ab286b3cc.tar.gz
oggenc: fix "oggstream may be used uninitialized in this function" warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggenc.c')
-rw-r--r--libavformat/oggenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 31e28413e9..3d4519c1ac 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)