summaryrefslogtreecommitdiff
path: root/ffmpeg/libswresample/swresample.h
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg/libswresample/swresample.h')
-rw-r--r--ffmpeg/libswresample/swresample.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ffmpeg/libswresample/swresample.h b/ffmpeg/libswresample/swresample.h
index 95e8a5a..3811301 100644
--- a/ffmpeg/libswresample/swresample.h
+++ b/ffmpeg/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);
@@ -84,8 +84,8 @@
* input, in_samples);
* handle_output(output, out_samples);
* av_freep(&output);
- * }
- * @endcode
+ * }
+ * @endcode
*
* When the conversion is finished, the conversion
* context and everything associated with it must be freed with swr_free().