From c19ee00e23054f47445141c5870c1ed61b38f2ad Mon Sep 17 00:00:00 2001 From: Viktor Gal Date: Tue, 20 Apr 2010 15:49:32 +1000 Subject: [PATCH] Fix oggplay-dump-first-frame From Imlib's reference manual: "Each pixel has the upper 8 bits as the alpha channel and the lower 8 bits are the blue channel - so a pixel's bits are ARGB (from most to least significant, 8 bits per channel)." credits to doublec for reporting the bug --- src/tools/oggplay-dump-first-frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/oggplay-dump-first-frame.c b/src/tools/oggplay-dump-first-frame.c index b880dc7..4223ea7 100644 --- a/src/tools/oggplay-dump-first-frame.c +++ b/src/tools/oggplay-dump-first-frame.c @@ -55,7 +55,7 @@ dump_video_data (OggPlay * player, int track_num, OggPlayVideoData * video_data, to.rgb_width = from.y_width; to.rgb_height = from.y_height; - oggplay_yuv2rgba (&from, &to); + oggplay_yuv2bgra (&from, &to); printf("now %dx%d\n", to.rgb_width, to.rgb_height); write_png_file("out.png", &to); -- 2.11.4.GIT