diff options
author | szabii <szabii@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-03-28 18:01:16 +0000 |
---|---|---|
committer | szabii <szabii@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-03-28 18:01:16 +0000 |
commit | 3585c287f81706a630cfbf436ade53de53737647 (patch) | |
tree | fcf3f48853868d252b4cc9b2ed620604a0dfd587 /libvo/vo_fbdev.c | |
parent | 0442aafc860f79aa4c1a294f167abc35ed8cca2f (diff) | |
download | mpv-3585c287f81706a630cfbf436ade53de53737647.tar.bz2 mpv-3585c287f81706a630cfbf436ade53de53737647.tar.xz |
works with .avi (for me :) )
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@231 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_fbdev.c')
-rw-r--r-- | libvo/vo_fbdev.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c index dcb43b2fe9..ebedc626e5 100644 --- a/libvo/vo_fbdev.c +++ b/libvo/vo_fbdev.c @@ -27,7 +27,7 @@ static vo_info_t vo_info = { "" }; -static int vt_active; +static int vt_active = -1; static int vt_fd; char *fb_dev_name = NULL; @@ -195,8 +195,8 @@ static uint32_t query_format(uint32_t format) if (fb_init()) return 0; printf("vo_fbdev: query_format(%#x): ", format); - if (format & IMGFMT_BGR_MASK == IMGFMT_BGR) - goto not_supported; +// if (format & IMGFMT_BGR_MASK == IMGFMT_BGR) +// goto not_supported; switch (format) { case IMGFMT_YV12: goto supported; @@ -275,16 +275,16 @@ static uint32_t draw_frame(uint8_t *src[]) yuv2rgb(next_frame, src[0], src[1], src[2], in_width, in_height, in_width * (fb_bpp / 8), in_width, in_width / 2); - } else if ((pixel_format & IMGFMT_RGB_MASK) == IMGFMT_RGB) { + } else if ((pixel_format & IMGFMT_BGR_MASK) == IMGFMT_BGR) { int i; uint8_t *dst = next_frame; uint8_t *s = src[0]; for (i = 0; i < in_height; i++) { - memcpy(next_frame, s, in_width * (fb_bpp / 8)); - dst += screen_width; + memcpy(dst, s, in_width * (fb_bpp / 8)); + dst += in_width * (fb_bpp / 8); s += in_width * (fb_bpp / 8); } - } else { + } else if ((pixel_format & IMGFMT_RGB_MASK) == IMGFMT_RGB) { } return 0; } |