[FFmpeg-cvslog] avfilter/vf_colorspace: fix range for output colorspace option

James Almer git at videolan.org
Wed Sep 28 23:44:24 EEST 2016


ffmpeg | branch: release/3.1 | James Almer <jamrial at gmail.com> | Wed Sep 28 17:24:42 2016 -0300| [2303cea5be08a31a4708b36c8e83150e2a120414] | committer: James Almer

avfilter/vf_colorspace: fix range for output colorspace option

Rreviewed-by: BBB
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit e4bfc9ecf73d593853ef4e993a5c753f5596aee1)

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

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

diff --git a/libavfilter/vf_colorspace.c b/libavfilter/vf_colorspace.c
index 3d39f13..a543690 100644
--- a/libavfilter/vf_colorspace.c
+++ b/libavfilter/vf_colorspace.c
@@ -1008,7 +1008,7 @@ static const AVOption colorspace_options[] = {
 
     { "space",      "Output colorspace",
       OFFSET(user_csp),   AV_OPT_TYPE_INT, { .i64 = AVCOL_SPC_UNSPECIFIED },
-      AVCOL_PRI_RESERVED0, AVCOL_PRI_NB - 1, FLAGS, "csp" },
+      AVCOL_SPC_RGB, AVCOL_SPC_NB - 1, FLAGS,  "csp"},
     ENUM("bt709",       AVCOL_SPC_BT709,       "csp"),
     ENUM("fcc",         AVCOL_SPC_FCC,         "csp"),
     ENUM("bt470bg",     AVCOL_SPC_BT470BG,     "csp"),



More information about the ffmpeg-cvslog mailing list