oggenc: fix "oggstream may be used uninitialized in this function" warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-01-29 15:57:15 +01:00
parent 5068bcda95
commit 036b9ee1c9

View File

@ -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)