diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-10-15 01:20:35 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-10-17 18:09:54 +0200 |
commit | 904c89ac1bdc311b8da2f722abb0e882c7d5d6a7 (patch) | |
tree | be4d137aa6ad3e49292ae32fc26d8c38f88aaf45 /libswresample/swresample.h | |
parent | 8696e51bafdc08baa8fe74fc4bc95904f4ad5654 (diff) | |
download | ffmpeg-904c89ac1bdc311b8da2f722abb0e882c7d5d6a7.tar.gz |
lswr/swresample: convert ocl and icl options to AV_OPT_TYPE_CHANNEL_LAYOUT
Improve interface flexibility. In particular makes it possible to set
channel layout through symbolic names using the av_opt_set() interface.
Diffstat (limited to 'libswresample/swresample.h')
-rw-r--r-- | libswresample/swresample.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswresample/swresample.h b/libswresample/swresample.h index 23ceb982f4..381130184d 100644 --- a/libswresample/swresample.h +++ b/libswresample/swresample.h @@ -44,8 +44,8 @@ * matrix): * @code * SwrContext *swr = swr_alloc(); - * av_opt_set_int(swr, "in_channel_layout", AV_CH_LAYOUT_5POINT1, 0); - * av_opt_set_int(swr, "out_channel_layout", AV_CH_LAYOUT_STEREO, 0); + * av_opt_set_channel_layout(swr, "in_channel_layout", AV_CH_LAYOUT_5POINT1, 0); + * av_opt_set_channel_layout(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_sample_fmt(swr, "in_sample_fmt", AV_SAMPLE_FMT_FLTP, 0); |