[x264-devel] Build issue
    Chang Chen 
    Chang_Chen at sonic.com
       
    Mon Apr 21 06:38:14 CEST 2008
    
    
  
Hi 
 
For the "cacheline split workaround for mc_luma"
 
+    for( i = 1; i < 3; i++ )
     {
-        CHECKED_MALLOC( frame->buffer[4+i],
-                        frame->i_stride[0] * ( frame->i_lines[0] +
2*i_padv ) );
-        frame->filtered[i+1] = ((uint8_t*)frame->buffer[4+i]) +
-                                frame->i_stride[0] * i_padv + PADH;
+        CHECKED_MALLOC( frame->buffer[i], luma_plane_size/4 );
+        frame->plane[i] = frame->buffer[i] + (frame->i_stride[i] *
i_padv + PADH)/2;
     }
 
This line would be problematic, 
 
frame->plane[i] = frame->buffer[i] + (frame->i_stride[i] * i_padv +
PADH)/2;
 
the buffer array is defined as "void    *buffer[4];" and plane is
defined as "uint8_t *plane[3]", so it leads a compile issue at MSVC71
 
Chang.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/x264-devel/attachments/20080421/a737566d/attachment.htm 
    
    
More information about the x264-devel
mailing list