[FFmpeg-cvslog] avcodec/vc1: check return value of bitplane_decoding()

Paul B Mahol git at videolan.org
Tue Apr 24 00:51:05 EEST 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Apr 23 00:05:20 2018 +0200| [daba369471376953ee558dabe100d5eca0d89b02] | committer: Paul B Mahol

avcodec/vc1: check return value of bitplane_decoding()

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=daba369471376953ee558dabe100d5eca0d89b02
---

 libavcodec/vc1.c | 2 ++
 1 file changed, 2 insertions(+)

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



More information about the ffmpeg-cvslog mailing list