You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vc1dec: Factorize picture pointer selection in vc1_mc_4mv_chroma()
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
committed by
Martin Storsjö
parent
2412ad1717
commit
201412ffec
@@ -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];
|
||||
|
Reference in New Issue
Block a user