Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2014-01-04 12:31:40 +0400
committerClément Bœsch <u@pkh.me>2014-01-04 12:42:31 +0400
commit307b6b8cb4f8c2e6bd4ecf19395b2f42b929c63c (patch)
tree1fc3f5c03f24bd5b7069add8ef76b2a6fedde6ae /libavfilter/vf_lut3d.c
parentbe524ffc16bf14cab0ad112b0dcb48d09a2a40ff (diff)
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.
Diffstat (limited to 'libavfilter/vf_lut3d.c')
-rw-r--r--libavfilter/vf_lut3d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c
index 79566be8ce..d28061815f 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);