# HG changeset patch # User szabii # Date 985802476 0 # Node ID 2605bca34a96ac31d8b9328f52fb301b610afed5 # Parent a8170ba5496f74c9bb1d2e2ec483e430837e5c60 works with .avi (for me :) ) diff -r a8170ba5496f -r 2605bca34a96 libvo/vo_fbdev.c --- a/libvo/vo_fbdev.c Wed Mar 28 16:35:14 2001 +0000 +++ b/libvo/vo_fbdev.c Wed Mar 28 18:01:16 2001 +0000 @@ -27,7 +27,7 @@ "" }; -static int vt_active; +static int vt_active = -1; static int vt_fd; char *fb_dev_name = NULL; @@ -195,8 +195,8 @@ 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 @@ 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; }