[FFmpeg-cvslog] avfilter/palettegen: use AV_OPT_TYPE_BOOL for reserve_transparent option

Clément Bœsch git at videolan.org
Wed Sep 9 00:37:25 CEST 2015


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Wed Sep  9 00:34:56 2015 +0200| [81e52c6df90d4126520dddd69973dc2739e598a0] | committer: Clément Bœsch

avfilter/palettegen: use AV_OPT_TYPE_BOOL for reserve_transparent option

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

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

diff --git a/libavfilter/vf_palettegen.c b/libavfilter/vf_palettegen.c
index 4e7cb8a..9e72337 100644
--- a/libavfilter/vf_palettegen.c
+++ b/libavfilter/vf_palettegen.c
@@ -79,7 +79,7 @@ typedef struct {
 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 static const AVOption palettegen_options[] = {
     { "max_colors", "set the maximum number of colors to use in the palette", OFFSET(max_colors), AV_OPT_TYPE_INT, {.i64=256}, 4, 256, FLAGS },
-    { "reserve_transparent", "reserve a palette entry for transparency", OFFSET(reserve_transparent), AV_OPT_TYPE_INT, {.i64=1}, 0, 1, FLAGS },
+    { "reserve_transparent", "reserve a palette entry for transparency", OFFSET(reserve_transparent), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },
     { "stats_mode", "set statistics mode", OFFSET(stats_mode), AV_OPT_TYPE_INT, {.i64=STATS_MODE_ALL_FRAMES}, 0, NB_STATS_MODE, FLAGS, "mode" },
         { "full", "compute full frame histograms", 0, AV_OPT_TYPE_CONST, {.i64=STATS_MODE_ALL_FRAMES}, INT_MIN, INT_MAX, FLAGS, "mode" },
         { "diff", "compute histograms only for the part that differs from previous frame", 0, AV_OPT_TYPE_CONST, {.i64=STATS_MODE_DIFF_FRAMES}, INT_MIN, INT_MAX, FLAGS, "mode" },



More information about the ffmpeg-cvslog mailing list