From: stefano Date: Tue, 31 Mar 2009 18:41:39 +0000 (+0000) Subject: Change the order of the components for RGB565LE and RGB565BE, X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/commitdiff_plain/fd04b5f5ed5f08afbef6d25206d328aaded9e48a Change the order of the components for RGB565LE and RGB565BE, to make them resemble the order in the name: BGR <-> RGB. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18279 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- diff --git a/libavcodec/pixdesc.c b/libavcodec/pixdesc.c index 139341540..c6b1d8d31 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, },