提交 201412ff 编写于 作者: M Michael Niedermayer 提交者: Martin Storsjö

vc1dec: Factorize picture pointer selection in vc1_mc_4mv_chroma()

Signed-off-by: NMartin Storsjö <martin@martin.st>
上级 2412ad17
......@@ -829,14 +829,9 @@ static void vc1_mc_4mv_chroma(VC1Context *v, int dir)
}
if (!dir) {
if (v->field_mode) {
if ((v->cur_field_type != chroma_ref_type) && v->cur_field_type) {
srcU = s->current_picture.f.data[1];
srcV = s->current_picture.f.data[2];
} else {
srcU = s->last_picture.f.data[1];
srcV = s->last_picture.f.data[2];
}
if (v->field_mode && (v->cur_field_type != chroma_ref_type) && v->cur_field_type) {
srcU = s->current_picture.f.data[1];
srcV = s->current_picture.f.data[2];
} else {
srcU = s->last_picture.f.data[1];
srcV = s->last_picture.f.data[2];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册