]> git.sesse.net Git - ffmpeg/commitdiff
doc: Fix best_nb_channells typo
authorPeter Meerwald <p.meerwald@bct-electronic.com>
Wed, 3 Apr 2013 12:33:58 +0000 (14:33 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 4 Apr 2013 05:51:28 +0000 (07:51 +0200)
Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/api-example.c

index 949b3ef3acff85809d360027af006ed2a4c4a69d..25b7cfe2a6ead9f61a2f3969f332f23b5bee20b7 100644 (file)
@@ -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++;
     }