summaryrefslogtreecommitdiff
authorPaul B Mahol <onemda@gmail.com>2013-06-04 11:56:14 (GMT)
committer Paul B Mahol <onemda@gmail.com>2013-06-04 21:57:25 (GMT)
commit0804171104057b20897cec1b59456702744d12fe (patch)
treeae706195db7c1999a0c78690753ff4eabe5da64a
parent495bf1b68574a27536dcf2e06bad3cf72a84f7ba (diff)
downloadffmpeg-0804171104057b20897cec1b59456702744d12fe.zip
ffmpeg-0804171104057b20897cec1b59456702744d12fe.tar.gz
ffmpeg-0804171104057b20897cec1b59456702744d12fe.tar.bz2
swresample: set flags & description and add documentation for output_sample_bits
Allows users to actually use such option. Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat
-rw-r--r--doc/resampler.texi4
-rw-r--r--libswresample/swresample.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/resampler.texi b/doc/resampler.texi
index d37d53d..bc9d31d 100644
--- a/doc/resampler.texi
+++ b/doc/resampler.texi
@@ -217,6 +217,10 @@ select Kaiser Windowed Sinc
For swr only, set Kaiser Window Beta value. Must be an integer in the
interval [2,16], default value is 9.
+@item output_sample_bits
+For swr only, set number of used output sample bits for dithering. Must be an integer in the
+interval [0,64], default value is 0, which means it's not used.
+
@end table
@c man end RESAMPLER OPTIONS
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index 49987c7..012de02 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -127,7 +127,7 @@ static const AVOption options[]={
{ "kaiser_beta" , "set swr Kaiser Window Beta" , OFFSET(kaiser_beta) , AV_OPT_TYPE_INT , {.i64=9 }, 2 , 16 , PARAM },
-{ "output_sample_bits" , "" , OFFSET(dither.output_sample_bits) , AV_OPT_TYPE_INT , {.i64=0 }, 0 , 64 , 0 },
+{ "output_sample_bits" , "set swr number of output sample bits", OFFSET(dither.output_sample_bits), AV_OPT_TYPE_INT , {.i64=0 }, 0 , 64 , PARAM },
{0}
};