mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
vc1dec: Set opposite to the correct value for 1REF field pictures
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
7cc3c4e1d4
commit
eb657ecefd
@ -1458,10 +1458,16 @@ static inline void vc1_pred_mv(VC1Context *v, int n, int dmv_x, int dmv_y,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (v->field_mode) {
|
if (v->field_mode) {
|
||||||
if (num_samefield <= num_oppfield)
|
if (!v->numref)
|
||||||
opposite = 1 - pred_flag;
|
// REFFIELD determines if the last field or the second-last field is
|
||||||
else
|
// to be used as reference
|
||||||
opposite = pred_flag;
|
opposite = 1 - v->reffield;
|
||||||
|
else {
|
||||||
|
if (num_samefield <= num_oppfield)
|
||||||
|
opposite = 1 - pred_flag;
|
||||||
|
else
|
||||||
|
opposite = pred_flag;
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
opposite = 0;
|
opposite = 0;
|
||||||
if (opposite) {
|
if (opposite) {
|
||||||
|
Loading…
Reference in New Issue
Block a user