summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorPeter Meerwald <p.meerwald@bct-electronic.com>2013-04-03 14:33:58 +0200
committerAnton Khirnov <anton@khirnov.net>2013-04-04 07:51:28 +0200
commitdfcbe8cbd78bb682f0fdfd4d281ab825ab481caf (patch)
treea576575253a5b772bd4993c0e2ba863b227b2114 /libavcodec
parent25a80a931a3829f9d730971dbd269aa39cc273f6 (diff)
doc: Fix best_nb_channells typo
Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/api-example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/api-example.c b/libavcodec/api-example.c
index 949b3ef3ac..25b7cfe2a6 100644
--- a/libavcodec/api-example.c
+++ b/libavcodec/api-example.c
@@ -82,7 +82,7 @@ static int select_channel_layout(AVCodec *codec)
{
const uint64_t *p;
uint64_t best_ch_layout = 0;
- int best_nb_channells = 0;
+ int best_nb_channels = 0;
if (!codec->channel_layouts)
return AV_CH_LAYOUT_STEREO;
@@ -91,9 +91,9 @@ static int select_channel_layout(AVCodec *codec)
while (*p) {
int nb_channels = av_get_channel_layout_nb_channels(*p);
- if (nb_channels > best_nb_channells) {
+ if (nb_channels > best_nb_channels) {
best_ch_layout = *p;
- best_nb_channells = nb_channels;
+ best_nb_channels = nb_channels;
}
p++;
}