changeset 10717:4b1bc4a1ff14 libavcodec

10l trocadero: forgot one case where picture linesize should be used
author kostya
date Sun, 27 Dec 2009 08:56:06 +0000
parents e64842a691d8
children 1b91df81bda4
files interplayvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/interplayvideo.c	Sun Dec 27 08:53:02 2009 +0000
+++ b/interplayvideo.c	Sun Dec 27 08:56:06 2009 +0000
@@ -589,7 +589,7 @@
         s->stride = s->current_frame.linesize[0] >> 1;
     }
     s->line_inc = s->stride - 8;
-    s->upper_motion_limit_offset = (s->avctx->height - 8) * s->stride
+    s->upper_motion_limit_offset = (s->avctx->height - 8) * s->current_frame.linesize[0]
                                   + (s->avctx->width - 8) * (1 + s->is_16bpp);
 
     init_get_bits(&gb, s->decoding_map, s->decoding_map_size * 8);