[FFmpeg-cvslog] avfilter/lut3d: fix channel order in Iridas format parsing.

Clément Bœsch git at videolan.org
Sat Jan 4 09:44:16 CET 2014


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Jan  4 09:31:40 2014 +0100| [307b6b8cb4f8c2e6bd4ecf19395b2f42b929c63c] | committer: Clément Bœsch

avfilter/lut3d: fix channel order in Iridas format parsing.

According to http://doc.iridas.com/index.php?title=LUT_Formats

    for 3D textures, the data is also RGB, and ordered in such a way
    that the red coordinate changes fastest, then the green coordinate,
    and finally, the blue coordinate changes slowest:

Fixes Ticket #3236.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=307b6b8cb4f8c2e6bd4ecf19395b2f42b929c63c
---

 libavfilter/vf_lut3d.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c
index 79566be..d280618 100644
--- a/libavfilter/vf_lut3d.c
+++ b/libavfilter/vf_lut3d.c
@@ -273,7 +273,7 @@ static int parse_cube(AVFilterContext *ctx, FILE *f)
             for (k = 0; k < size; k++) {
                 for (j = 0; j < size; j++) {
                     for (i = 0; i < size; i++) {
-                        struct rgbvec *vec = &lut3d->lut[k][j][i];
+                        struct rgbvec *vec = &lut3d->lut[i][j][k];
 
                         do {
                             NEXT_LINE(0);



More information about the ffmpeg-cvslog mailing list