aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/ffmdec.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-03-08 22:52:47 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-21 01:52:52 +0100
commitb36bda3c82cb80a90c250e7384e9bc0a50ace2b3 (patch)
treeba3586c4d7ba0c2e6a870892d5a90c6759e0359d /libavformat/ffmdec.c
parent25b8d52fdd158b524c08947526b8abdf968bac19 (diff)
downloadffmpeg-b36bda3c82cb80a90c250e7384e9bc0a50ace2b3.tar.gz
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: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 66879ee125944b0efde673d9fbebbe9489853e59) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/ffmdec.c')
-rw-r--r--libavformat/ffmdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c
index 987f419c96..280a24cb38 100644
--- a/libavformat/ffmdec.c
+++ b/libavformat/ffmdec.c
@@ -261,7 +261,7 @@ static int ffm2_read_header(AVFormatContext *s)
AVIOContext *pb = s->pb;
AVCodecContext *codec;
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;
char *buffer;