[FFmpeg-cvslog] avfilter/haldclut: fix R/B swap in CLUT loading

Clément Bœsch git at videolan.org
Sat Jul 5 19:41:13 CEST 2014


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Jul  5 19:35:31 2014 +0200| [d5601cf6fc1c1606ec45466d5d72fd1e60a4ba3b] | committer: Clément Bœsch

avfilter/haldclut: fix R/B swap in CLUT loading

Fixes Ticket #3751.

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

 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 7c3a7da..862ddde 100644
--- a/libavfilter/vf_lut3d.c
+++ b/libavfilter/vf_lut3d.c
@@ -654,7 +654,7 @@ static void update_clut(LUT3DContext *lut3d, const AVFrame *frame)
             for (i = 0; i < level; i++) {                               \
                 const uint##nbits##_t *src = (const uint##nbits##_t *)  \
                     (data + y*linesize + x*step);                       \
-                struct rgbvec *vec = &lut3d->lut[k][j][i];              \
+                struct rgbvec *vec = &lut3d->lut[i][j][k];              \
                 vec->r = src[rgba_map[0]] / (float)((1<<(nbits)) - 1);  \
                 vec->g = src[rgba_map[1]] / (float)((1<<(nbits)) - 1);  \
                 vec->b = src[rgba_map[2]] / (float)((1<<(nbits)) - 1);  \



More information about the ffmpeg-cvslog mailing list