diff options
author | Jerome Borsboom <jerome.borsboom@carpalis.nl> | 2019-01-14 09:05:24 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-01-14 13:37:37 +0100 |
commit | fc6e53b0b662c60560dff75cc93248f72d0faf8a (patch) | |
tree | 705dd02fd51d9b9b11feec1ad65fb9a97e1bc096 /libavcodec/vc1_pred.c | |
parent | d52a1be4e339f977485941ebf3bd26da2a40f72f (diff) | |
download | ffmpeg-fc6e53b0b662c60560dff75cc93248f72d0faf8a.tar.gz |
avcodec/vc1: fix B predictor validity for 4-MV MBs
The B predictor for 4-MV MBs in interlace field pictures is not used
for blocks 0 and 2 when the picture is 1 MB wide.
Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
Diffstat (limited to 'libavcodec/vc1_pred.c')
-rw-r--r-- | libavcodec/vc1_pred.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vc1_pred.c b/libavcodec/vc1_pred.c index 8b5a9ead0b..9e29b44a1f 100644 --- a/libavcodec/vc1_pred.c +++ b/libavcodec/vc1_pred.c @@ -289,6 +289,8 @@ void ff_vc1_pred_mv(VC1Context *v, int n, int dmv_x, int dmv_y, case 3: off = -1; } + if (v->field_mode && s->mb_width == 1) + b_valid = b_valid && c_valid; } if (v->field_mode) { |