Changeset 11b51d62210fb0cd6f0c067eec6e40074e9c9c7d

Show
Ignore:
Timestamp:
06/03/08 17:01:28 (3 months ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1212505288 +0200
git-parent:

[86c91e1260731c8c3d708af0ed289b048d78bf98]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1212505263 +0200
Message:

Do not align height and width on multiples of 16 in XVideo output. This fixes #1604. If someone thinks that this fix isn't correct, please revert this commit ... and explain why it was wrong :)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/video_output/x11/xcommon.c

    r3527f69 r11b51d6  
    14501450                                    p_win->i_width, p_win->i_height ); 
    14511451                } 
    1452 #endif  
     1452#endif 
    14531453 
    14541454#if 0 
     
    20032003                    + p_pic->p_sys->p_image->offsets[1]; 
    20042004            } 
     2005 
    20052006            break; 
    20062007 
     
    28392840    /* Create XImage / XvImage */ 
    28402841#ifdef MODULE_NAME_IS_xvideo 
    2841  
    2842     /* Make sure the buffer is aligned to multiple of 16 */ 
    2843     i_height = ( i_height + 15 ) >> 4 << 4; 
    2844     i_width = ( i_width + 15 ) >> 4 << 4; 
    2845  
    28462842    p_image = XvShmCreateImage( p_display, i_xvport, i_chroma, 0, 
    28472843                                i_width, i_height, p_shm ); 
     
    29292925    /* Allocate memory for image */ 
    29302926#ifdef MODULE_NAME_IS_xvideo 
    2931  
    2932     /* Make sure the buffer is aligned to multiple of 16 */ 
    2933     i_height = ( i_height + 15 ) >> 4 << 4; 
    2934     i_width = ( i_width + 15 ) >> 4 << 4; 
    2935  
    29362927    p_data = malloc( i_width * i_height * i_bits_per_pixel / 8 ); 
    29372928#elif defined(MODULE_NAME_IS_x11)