[FFmpeg-cvslog] swresample: use AV_OPT_TYPE_BOOL for linear_interp and cheby options

Clément Bœsch git at videolan.org
Fri Dec 4 15:52:29 CET 2015


ffmpeg | branch: master | Clément Bœsch <clement at stupeflix.com> | Sat Nov 21 22:05:40 2015 +0100| [c1f114a8c4ff4955b57db74acd9d8583e1cc93fe] | committer: Clément Bœsch

swresample: use AV_OPT_TYPE_BOOL for linear_interp and cheby options

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

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

diff --git a/libswresample/options.c b/libswresample/options.c
index 654102a..eac1a7c 100644
--- a/libswresample/options.c
+++ b/libswresample/options.c
@@ -84,7 +84,7 @@ static const AVOption options[]={
 
 {"filter_size"          , "set swr resampling filter size", OFFSET(filter_size)  , AV_OPT_TYPE_INT  , {.i64=32                    }, 0      , INT_MAX   , PARAM },
 {"phase_shift"          , "set swr resampling phase shift", OFFSET(phase_shift)  , AV_OPT_TYPE_INT  , {.i64=10                    }, 0      , 24        , PARAM },
-{"linear_interp"        , "enable linear interpolation" , OFFSET(linear_interp)  , AV_OPT_TYPE_INT  , {.i64=0                     }, 0      , 1         , PARAM },
+{"linear_interp"        , "enable linear interpolation" , OFFSET(linear_interp)  , AV_OPT_TYPE_BOOL , {.i64=0                     }, 0      , 1         , PARAM },
 {"cutoff"               , "set cutoff frequency ratio"  , OFFSET(cutoff)         , AV_OPT_TYPE_DOUBLE,{.dbl=0.                    }, 0      , 1         , PARAM },
 
 /* duplicate option in order to work with avconv */
@@ -96,7 +96,7 @@ static const AVOption options[]={
 {"precision"            , "set soxr resampling precision (in bits)"
                                                         , OFFSET(precision)      , AV_OPT_TYPE_DOUBLE,{.dbl=20.0                  }, 15.0   , 33.0      , PARAM },
 {"cheby"                , "enable soxr Chebyshev passband & higher-precision irrational ratio approximation"
-                                                        , OFFSET(cheby)          , AV_OPT_TYPE_INT  , {.i64=0                     }, 0      , 1         , PARAM },
+                                                        , OFFSET(cheby)          , AV_OPT_TYPE_BOOL , {.i64=0                     }, 0      , 1         , PARAM },
 {"min_comp"             , "set minimum difference between timestamps and audio data (in seconds) below which no timestamp compensation of either kind is applied"
                                                         , OFFSET(min_compensation),AV_OPT_TYPE_FLOAT ,{.dbl=FLT_MAX               }, 0      , FLT_MAX   , PARAM },
 {"min_hard_comp"        , "set minimum difference between timestamps and audio data (in seconds) to trigger padding/trimming the data."



More information about the ffmpeg-cvslog mailing list