Module: libav Branch: release/11 Commit: 23e475ec7b555491196f57c9e67e302d48568ab4
Author: Sean McGovern <[email protected]> Committer: Sean McGovern <[email protected]> Date: Sat Jan 27 21:19:30 2018 -0500 vc1: skip motion compensation when data for last picture is invalid Bug-Id: 1101 Cc: [email protected] Amended-by: Sean McGovern <[email protected]> Signed-off-by: Sean McGovern <[email protected]> --- libavcodec/vc1dec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 531e3ef..cbaae33 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -995,6 +995,11 @@ static void vc1_mc_4mv_chroma4(VC1Context *v, int dir, int dir2, int avg) if (s->flags & CODEC_FLAG_GRAY) return; + if (!s->last_picture.f->data[1]) { + av_log(s->avctx, AV_LOG_ERROR, "Bad data in last picture frame.\n"); + return; + } + for (i = 0; i < 4; i++) { int d = i < 2 ? dir: dir2; tx = s->mv[d][i][0]; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
