From f938cbf984dc51adc135fca0c1d3dbe5bd8e72ee Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Tue, 31 Mar 2009 18:41:39 +0000 Subject: [PATCH] Change the order of the components for RGB565LE and RGB565BE, to make them resemble the order in the name: BGR <-> RGB. Originally committed as revision 18279 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/pixdesc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/pixdesc.c b/libavcodec/pixdesc.c index 139341540b..c6b1d8d313 100644 --- a/libavcodec/pixdesc.c +++ b/libavcodec/pixdesc.c @@ -160,9 +160,9 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = { .log2_chroma_w= 0, .log2_chroma_h= 0, .comp = { - {0,1,1,0,4}, /* B */ - {0,1,1,5,5}, /* G */ {0,1,2,3,4}, /* R */ + {0,1,1,5,5}, /* G */ + {0,1,1,0,4}, /* B */ }, }, [PIX_FMT_RGB565BE] = { @@ -171,9 +171,9 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = { .log2_chroma_w= 0, .log2_chroma_h= 0, .comp = { - {0,1,1,0,4}, /* B */ - {0,1,1,5,5}, /* G */ {0,1,0,3,4}, /* R */ + {0,1,1,5,5}, /* G */ + {0,1,1,0,4}, /* B */ }, .flags = PIX_FMT_BE, },