aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample/swresample.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-11-04 15:45:09 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-12-03 13:49:56 +0100
commit8bee8f778ae1f7f5aec699f53c7bfa09ef0907c7 (patch)
treec0554fd0bb2efe4737448a0d9ea884ad3e8e4091 /libswresample/swresample.h
parent7e93b0ba4b5a60c4ddb84aa867fe3644ac865a9d (diff)
downloadffmpeg-8bee8f778ae1f7f5aec699f53c7bfa09ef0907c7.tar.gz
lswr/swresample: use AV_OPT_TYPE_SAMPLE_FMT for sample format options
Improve usability and robustness.
Diffstat (limited to 'libswresample/swresample.h')
-rw-r--r--libswresample/swresample.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswresample/swresample.h b/libswresample/swresample.h
index 71a82cc54c..6dd8a47d20 100644
--- a/libswresample/swresample.h
+++ b/libswresample/swresample.h
@@ -47,8 +47,8 @@
* av_opt_set_int(swr, "out_channel_layout", AV_CH_LAYOUT_STEREO, 0);
* av_opt_set_int(swr, "in_sample_rate", 48000, 0);
* av_opt_set_int(swr, "out_sample_rate", 44100, 0);
- * av_opt_set_int(swr, "in_sample_fmt", AV_SAMPLE_FMT_FLTP, 0);
- * av_opt_set_int(swr, "out_sample_fmt, AV_SAMPLE_FMT_S16, 0);
+ * av_opt_set_sample_fmt(swr, "in_sample_fmt", AV_SAMPLE_FMT_FLTP, 0);
+ * av_opt_set_sample_fmt(swr, "out_sample_fmt, AV_SAMPLE_FMT_S16, 0);
* @endcode
*
* Once all values have been set, it must be initialized with swr_init(). If