[FFmpeg-cvslog] vf_colorspace: fix range order.

Ronald S. Bultje git at videolan.org
Tue May 10 16:17:33 CEST 2016


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Fri May  6 11:58:49 2016 -0400| [356c116536650ae015f914fda060203dd853cc5c] | committer: Ronald S. Bultje

vf_colorspace: fix range order.

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

 libavfilter/vf_colorspace.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_colorspace.c b/libavfilter/vf_colorspace.c
index 00d8889..3f299a7 100644
--- a/libavfilter/vf_colorspace.c
+++ b/libavfilter/vf_colorspace.c
@@ -770,8 +770,8 @@ static int create_filtergraph(AVFilterContext *ctx,
                 s->yuv_offset[1][n] = off;
             fill_rgb2yuv_table(s->out_lumacoef, rgb2yuv);
             bits = 1 << (29 - out_desc->comp[0].depth);
-            for (n = 0; n < 3; n++) {
-                for (out_rng = s->out_y_rng, m = 0; m < 3; m++, out_rng = s->out_uv_rng) {
+            for (out_rng = s->out_y_rng, n = 0; n < 3; n++, out_rng = s->out_uv_rng) {
+                for (m = 0; m < 3; m++) {
                     s->rgb2yuv_coeffs[n][m][0] = lrint(bits * out_rng * rgb2yuv[n][m] / 28672);
                     for (o = 1; o < 8; o++)
                         s->rgb2yuv_coeffs[n][m][o] = s->rgb2yuv_coeffs[n][m][0];



More information about the ffmpeg-cvslog mailing list