提交 1e4d6035 编写于 作者: M Michael Niedermayer

vc1: disable parts of the interlaced code due to security issues.

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 41f55277
......@@ -985,6 +985,8 @@ int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
break;
case AV_PICTURE_TYPE_P:
if (v->field_mode) {
av_log(v->s.avctx, AV_LOG_ERROR, "P Fields do not work currently\n");
return -1;
v->numref = get_bits1(gb);
if (!v->numref) {
v->reffield = get_bits1(gb);
......@@ -1157,6 +1159,8 @@ int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
if (v->field_mode) {
int mvmode;
av_log(v->s.avctx, AV_LOG_ERROR, "B Fields do not work currently\n");
return -1;
if (v->extended_dmv)
v->dmvrange = get_unary(gb, 0, 3);
mvmode = get_unary(gb, 1, 3);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册