Commit 66879ee1 authored by Andreas Cadhalpun's avatar Andreas Cadhalpun Committed by Michael Niedermayer

ffmdec: initialize f_cprv, f_stvi and f_stau

They are used in a switch statement, but it is not guaranteed that the
COMM case (where they are set to 0) is reached before the other cases.
Signed-off-by: 's avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b0232301
...@@ -261,7 +261,7 @@ static int ffm2_read_header(AVFormatContext *s) ...@@ -261,7 +261,7 @@ static int ffm2_read_header(AVFormatContext *s)
AVIOContext *pb = s->pb; AVIOContext *pb = s->pb;
AVCodecContext *codec; AVCodecContext *codec;
int ret; int ret;
int f_main = 0, f_cprv, f_stvi, f_stau; int f_main = 0, f_cprv = -1, f_stvi = -1, f_stau = -1;
AVCodec *enc; AVCodec *enc;
char *buffer; char *buffer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment