summaryrefslogtreecommitdiff
path: root/libswresample/options.c
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2017-03-13 20:33:03 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2017-03-17 00:08:03 +0700
commit1f7eb216b085cfd4f18f328182cabe3f89093edd (patch)
tree29934dc59a0e2c5743908c4cd73767ec57216a91 /libswresample/options.c
parenta3a408259912e6d9337837c5d63c4b826778530f (diff)
downloadffmpeg-1f7eb216b085cfd4f18f328182cabe3f89093edd.tar.gz
swresample/options: enable linear_interp and exact_rational by default
better quality without speedloss Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libswresample/options.c')
-rw-r--r--libswresample/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswresample/options.c b/libswresample/options.c
index 4abf5e0518..00d4f7c1c9 100644
--- a/libswresample/options.c
+++ b/libswresample/options.c
@@ -84,8 +84,8 @@ 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_BOOL , {.i64=0 }, 0 , 1 , PARAM },
-{"exact_rational" , "enable exact rational" , OFFSET(exact_rational) , AV_OPT_TYPE_BOOL , {.i64=0 }, 0 , 1 , PARAM },
+{"linear_interp" , "enable linear interpolation" , OFFSET(linear_interp) , AV_OPT_TYPE_BOOL , {.i64=1 }, 0 , 1 , PARAM },
+{"exact_rational" , "enable exact rational" , OFFSET(exact_rational) , AV_OPT_TYPE_BOOL , {.i64=1 }, 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 */