[FFmpeg-cvslog] doc: Fix best_nb_channells typo

Peter Meerwald git at videolan.org
Thu Apr 4 13:06:26 CEST 2013


ffmpeg | branch: master | Peter Meerwald <p.meerwald at bct-electronic.com> | Wed Apr  3 14:33:58 2013 +0200| [dfcbe8cbd78bb682f0fdfd4d281ab825ab481caf] | committer: Anton Khirnov

doc: Fix best_nb_channells typo

Signed-off-by: Peter Meerwald <p.meerwald at bct-electronic.com>
Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dfcbe8cbd78bb682f0fdfd4d281ab825ab481caf
---

 libavcodec/api-example.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/api-example.c b/libavcodec/api-example.c
index 949b3ef..25b7cfe 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++;
     }



More information about the ffmpeg-cvslog mailing list