changeset 8768:4bb782c7793e libavcodec

cosmetics: Fix a few typos and use a consistent codec long name.
author diego
date Sun, 08 Feb 2009 23:32:46 +0000
parents 58fb0bcd6afd
children 6fc3497dc81f
files libspeexdec.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libspeexdec.c	Sun Feb 08 23:28:21 2009 +0000
+++ b/libspeexdec.c	Sun Feb 08 23:32:46 2009 +0000
@@ -60,17 +60,17 @@
             return -1;
         }
     } else
-        av_log(avctx, AV_LOG_INFO, "Missing speex header, assuming defaults\n");
+        av_log(avctx, AV_LOG_INFO, "Missing Speex header, assuming defaults.\n");
 
     if (avctx->channels > 2) {
-        av_log(avctx, AV_LOG_ERROR, "Only stereo and mono supported\n");
+        av_log(avctx, AV_LOG_ERROR, "Only stereo and mono are supported.\n");
         return -1;
     }
 
     speex_bits_init(&s->bits);
     s->dec_state = speex_decoder_init(mode);
     if (!s->dec_state) {
-        av_log(avctx, AV_LOG_ERROR, "Error initializing libspeex decoder\n");
+        av_log(avctx, AV_LOG_ERROR, "Error initializing libspeex decoder.\n");
         return -1;
     }
 
@@ -104,7 +104,7 @@
     for (i = 0; speex_bits_remaining(&s->bits) && output + num_samples < end; i++) {
         int ret = speex_decode_int(s->dec_state, &s->bits, output);
         if (ret <= -2) {
-            av_log(avctx, AV_LOG_ERROR, "Error decoding speex frame\n");
+            av_log(avctx, AV_LOG_ERROR, "Error decoding Speex frame.\n");
             return -1;
         } else if (ret == -1)
             // end of stream
@@ -140,5 +140,5 @@
     NULL,
     libspeex_decode_close,
     libspeex_decode_frame,
-    .long_name = NULL_IF_CONFIG_SMALL("libspeex"),
+    .long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"),
 };