[FFmpeg-cvslog] oggenc: fix "oggstream may be used uninitialized in this function" warning
Michael Niedermayer
git at videolan.org
Tue Jan 29 16:20:04 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan 29 15:57:15 2013 +0100| [036b9ee1c959d88d5ae7f1df21b2d36ab286b3cc] | committer: Michael Niedermayer
oggenc: fix "oggstream may be used uninitialized in this function" warning
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=036b9ee1c959d88d5ae7f1df21b2d36ab286b3cc
---
libavformat/oggenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 31e2841..3d4519c 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)
More information about the ffmpeg-cvslog
mailing list