summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-02-24 15:50:16 +0100
committerPaul B Mahol <onemda@gmail.com>2017-02-24 15:50:16 +0100
commitc583e701bd527eb9635bd8f1d22b06696b3e2b3d (patch)
treec59efa78e5cdaf8b80f18a5d099bdef1a120bff7
parent0a28c505063f0fdbfa24c28dc1e67704e10127b5 (diff)
avcodec/fmvc: initialize opcode to 0
It shouldn't really matter but it doesn't hurt. Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/fmvc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/fmvc.c b/libavcodec/fmvc.c
index c5e5b3d961..9c452da351 100644
--- a/libavcodec/fmvc.c
+++ b/libavcodec/fmvc.c
@@ -53,7 +53,7 @@ typedef struct FMVCContext {
static int decode_type2(GetByteContext *gb, PutByteContext *pb)
{
- unsigned repeat = 0, first = 1, opcode;
+ unsigned repeat = 0, first = 1, opcode = 0;
int i, len, pos;
while (bytestream2_get_bytes_left(gb) > 0) {
@@ -288,7 +288,7 @@ static int decode_type2(GetByteContext *gb, PutByteContext *pb)
static int decode_type1(GetByteContext *gb, PutByteContext *pb)
{
- unsigned opcode, len;
+ unsigned opcode = 0, len;
int high = 0;
int i, pos;