# HG changeset patch # User laaz # Date 986861921 0 # Node ID b2fd5c172f801184724d29d92147fa7b58203a06 # Parent 720c640332c8d82489716a7d9ed2d2786d805c05 vo_x11 query_format fix diff -r 720c640332c8 -r b2fd5c172f80 libvo/vo_x11.c --- a/libvo/vo_x11.c Tue Apr 10 00:00:04 2001 +0000 +++ b/libvo/vo_x11.c Tue Apr 10 00:18:41 2001 +0000 @@ -515,7 +515,14 @@ static uint32_t query_format( uint32_t format ) { if( !vo_init() ) return 0; // Can't open X11 - if( ( format&IMGFMT_BGR_MASK )==IMGFMT_BGR && ( format&0xFF )==vo_depthonscreen ) return 1; + + if( ( format&IMGFMT_BGR_MASK )==IMGFMT_BGR ){ + int bpp=format&0xFF; + if( bpp==vo_depthonscreen ) return 1; + if( bpp==15 && vo_depthonscreen==16) return 1; // built-in conversion + if( bpp==24 && vo_depthonscreen==32) return 1; // built-in conversion + } + switch( format ) { case IMGFMT_YV12: return 1;