# HG changeset patch # User acki2 # Date 987184213 0 # Node ID 15fb291915faca9711935484e420aa2be17554f6 # Parent e77b47a9998697feb9c1897c1fe690a1b22e20fa - changed -bpp again: if vo driver obeys depth value set by user, then the codec should do the same ... diff -r e77b47a99986 -r 15fb291915fa mplayer.c --- a/mplayer.c Fri Apr 13 17:34:18 2001 +0000 +++ b/mplayer.c Fri Apr 13 17:50:13 2001 +0000 @@ -434,6 +434,7 @@ float sub_delay=0; float sub_fps=0; //int user_bpp=0; +extern int vo_dbpp; #include "cfg-mplayer.h" printf("%s",banner_text); @@ -862,13 +863,13 @@ for(i=0;icodec->outfmt[i]; -// if(user_bpp){ -// if( ((out_fmt & IMGFMT_BGR_MASK) == IMGFMT_BGR) && ((out_fmt & 0xff) == user_bpp) || (out_fmt & IMGFMT_BGR_MASK) != IMGFMT_BGR){ -// if(video_out->query_format(out_fmt)) break; -// } -// }else{ + if(vo_dbpp){ + if( ((out_fmt & IMGFMT_BGR_MASK) == IMGFMT_BGR) && ((out_fmt & 0xff) == vo_dbpp) || (out_fmt & IMGFMT_BGR_MASK) != IMGFMT_BGR){ + if(video_out->query_format(out_fmt)) break; + } + }else{ if(video_out->query_format(out_fmt)) break; -// } + } } if(i>=CODECS_MAX_OUTFMT){ printf("Sorry, selected video_out device is incompatible with this codec.\n");