Originally committed as revision 20932 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -589,7 +589,7 @@ static void ipvideo_decode_opcodes(IpvideoContext *s) |
| 589 | 589 |
s->stride = s->current_frame.linesize[0] >> 1; |
| 590 | 590 |
} |
| 591 | 591 |
s->line_inc = s->stride - 8; |
| 592 |
- s->upper_motion_limit_offset = (s->avctx->height - 8) * s->stride |
|
| 592 |
+ s->upper_motion_limit_offset = (s->avctx->height - 8) * s->current_frame.linesize[0] |
|
| 593 | 593 |
+ (s->avctx->width - 8) * (1 + s->is_16bpp); |
| 594 | 594 |
|
| 595 | 595 |
init_get_bits(&gb, s->decoding_map, s->decoding_map_size * 8); |