-bpp bug fixed.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@713 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
se7encode 2001-05-06 19:38:57 +00:00
parent 6e21a09ab4
commit 0742d52b56
1 changed files with 1 additions and 0 deletions

View File

@ -377,6 +377,7 @@ static uint32_t query_format(uint32_t format) {
// if (vo_dbpp) => There is NO conversion!!! // if (vo_dbpp) => There is NO conversion!!!
if (vo_dbpp) { if (vo_dbpp) {
if (format == IMGFMT_YV12) return (1);
switch (vo_dbpp) { switch (vo_dbpp) {
case 32: if ((format == IMGFMT_RGB32) || (format == IMGFMT_BGR32)) case 32: if ((format == IMGFMT_RGB32) || (format == IMGFMT_BGR32))
return ((bpp_avail & BPP_32) ? 1 : 0); return ((bpp_avail & BPP_32) ? 1 : 0);