From ae7f876236995dc8c44f77f411884ba68f31e9fb Mon Sep 17 00:00:00 2001 From: szabii Date: Sat, 9 Jun 2001 17:33:21 +0000 Subject: 8bpp fix git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1077 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_fbdev.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libvo/vo_fbdev.c') diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c index 6d056c0632..97a98e6b8c 100644 --- a/libvo/vo_fbdev.c +++ b/libvo/vo_fbdev.c @@ -706,6 +706,11 @@ static int fb_preinit(void) fb_bpp = fb_vinfo.bits_per_pixel; + if (fb_bpp == 8 && !vo_dbpp) { + printf(FBDEV "8 bpp output is not supported.\n"); + goto err_out_fd; + } + /* 16 and 15 bpp is reported 16 bpp */ if (fb_bpp == 16) fb_bpp = fb_vinfo.red.length + fb_vinfo.green.length + @@ -715,7 +720,7 @@ static int fb_preinit(void) if (vo_dbpp != 15 && vo_dbpp != 16 && vo_dbpp != 24 && vo_dbpp != 32) { printf(FBDEV "can't switch to %d bpp\n", vo_dbpp); - goto err_out; + goto err_out_fd; } fb_bpp = vo_dbpp; } @@ -897,7 +902,7 @@ static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, fb_vinfo.blue.length; fb_bpp = (fb_pixel_size == 4) ? 32 : fb_real_bpp; if (fb_bpp_we_want != fb_bpp) - printf(FBDEV "requested %d bpp, got %d bpp)!!!\n", + printf(FBDEV "requested %d bpp, got %d bpp!!!\n", fb_bpp_we_want, fb_bpp); switch (fb_bpp) { -- cgit v1.2.3