[FFmpeg-trac] #3236(avfilter:new): lut3d video filter swaps color channels

FFmpeg trac at avcodec.org
Mon Dec 23 12:41:15 CET 2013


#3236: lut3d video filter swaps color channels
------------------------------------+------------------------------------
             Reporter:  FredTester  |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avfilter
              Version:  2.1.1       |               Resolution:
             Keywords:  lut         |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by ubitux):

 Can you try this change?

 {{{
 diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c
 index 79566be..d2c3417 100644
 --- a/libavfilter/vf_lut3d.c
 +++ b/libavfilter/vf_lut3d.c
 @@ -291,9 +291,9 @@ static int parse_cube(AVFilterContext *ctx, FILE *f)
                          } while (skip_line(line));
                          if (sscanf(line, "%f %f %f", &vec->r, &vec->g,
 &vec->
                              return AVERROR_INVALIDDATA;
 -                        vec->r *= max[0] - min[0];
 +                        vec->b *= max[0] - min[0];
                          vec->g *= max[1] - min[1];
 -                        vec->b *= max[2] - min[2];
 +                        vec->r *= max[2] - min[2];
                      }
                  }
              }
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3236#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list