]> git.sesse.net Git - vlc/commitdiff
* modules/codec/theora.c: correctly display x-offset video
authorAndre Pang <andrep@videolan.org>
Tue, 1 Feb 2005 16:02:40 +0000 (16:02 +0000)
committerAndre Pang <andrep@videolan.org>
Tue, 1 Feb 2005 16:02:40 +0000 (16:02 +0000)
modules/codec/theora.c

index 0353b0467ea3022a3cacc0a83fea140f4984f0f5..92fb2796a783d5db9e0d792575c3a2edbe5308e6 100644 (file)
@@ -545,7 +545,8 @@ static void theora_CopyPicture( decoder_t *p_dec, picture_t *p_pic,
 
         for( i_line = 0; i_line < p_pic->p[i_plane].i_visible_lines; i_line++ )
         {
-            p_dec->p_vlc->pf_memcpy( p_dst, p_src, i_width );
+            p_dec->p_vlc->pf_memcpy( p_dst, p_src + i_src_xoffset,
+                                     i_plane ? yuv->uv_width : yuv->y_width );
             p_src += i_src_stride;
             p_dst += i_dst_stride;
         }