diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-14 20:11:21 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-14 20:12:18 +0400 |
commit | c9f72e4b81ae44d1a61459e85a3e1216a239a8ee (patch) | |
tree | 40c28edc4b079d37e78f0ec0c54fe637e351f3ef /libavcodec/vc1dec.c | |
parent | 017e234c204f8ffb5f85a073231247881be1ac6f (diff) |
avcodec/vc1dec: fix mby_start for interlaced content
Fixes first frame of Ticket2531
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r-- | libavcodec/vc1dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index b2ca5dedd3..9ed565ca55 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -5858,7 +5858,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data, buf_size3 << 3); /* assuming that the field marker is at the exact middle, hope it's correct */ - slices[n_slices].mby_start = s->mb_height >> 1; + slices[n_slices].mby_start = s->mb_height + 1 >> 1; n_slices1 = n_slices - 1; // index of the last slice of the first field n_slices++; break; @@ -5909,7 +5909,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data, buf_size3 = vc1_unescape_buffer(divider + 4, buf + buf_size - divider - 4, slices[n_slices].buf); init_get_bits(&slices[n_slices].gb, slices[n_slices].buf, buf_size3 << 3); - slices[n_slices].mby_start = s->mb_height >> 1; + slices[n_slices].mby_start = s->mb_height + 1 >> 1; n_slices1 = n_slices - 1; n_slices++; } |