summaryrefslogtreecommitdiff
path: root/libavcodec/vc1.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-04-23 00:05:20 +0200
committerPaul B Mahol <onemda@gmail.com>2018-04-23 23:49:56 +0200
commitdaba369471376953ee558dabe100d5eca0d89b02 (patch)
treed5be7304b40bf631e1748c2a065c50d3230493f4 /libavcodec/vc1.c
parent9c01cdb94e24aaf50f867a0a5c42b097c17c42b1 (diff)
avcodec/vc1: check return value of bitplane_decoding()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r--libavcodec/vc1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index e7625070f7..bf4024cb5a 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -1055,6 +1055,8 @@ int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
v->last_use_ic = 1;
}
status = bitplane_decoding(v->s.mbskip_table, &v->skip_is_raw, v);
+ if (status < 0)
+ return -1;
av_log(v->s.avctx, AV_LOG_DEBUG, "SKIPMB plane encoding: "
"Imode: %i, Invert: %i\n", status>>1, status&1);
v->mbmodetab = get_bits(gb, 2);