[FFmpeg-devel] [PATCH] alsdec: Consistently use an exclamation mark for error messages.

Thilo Borgmann thilo.borgmann at googlemail.com
Sat Jan 5 15:53:07 CET 2013


For consistency...

-Thilo
-------------- next part --------------
>From 67d5795b8fc0ffc6eccffc45bca22e9303a4fe8e Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann at googlemail.com>
Date: Sat, 5 Jan 2013 15:38:06 +0100
Subject: [PATCH] alsdec: Consistently use an exclamation mark for error messages.

---
 libavcodec/alsdec.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 6136a25..33a3a30 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -667,7 +667,7 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
     }
     for (k = 1; k < sub_blocks; k++)
         if (s[k] > 32) {
-            av_log(avctx, AV_LOG_ERROR, "k invalid for rice code.\n");
+            av_log(avctx, AV_LOG_ERROR, "k invalid for rice code!\n");
             return AVERROR_INVALIDDATA;
         }
 
@@ -720,7 +720,7 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
                     int offset     = parcor_rice_table[sconf->coef_table][k][0];
                     quant_cof[k] = decode_rice(gb, rice_param) + offset;
                     if (quant_cof[k] < -64 || quant_cof[k] > 63) {
-                        av_log(avctx, AV_LOG_ERROR, "quant_cof %d is out of range\n", quant_cof[k]);
+                        av_log(avctx, AV_LOG_ERROR, "quant_cof %d is out of range!\n", quant_cof[k]);
                         return AVERROR_INVALIDDATA;
                     }
                 }
@@ -1479,7 +1479,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr,
     /* get output buffer */
     ctx->frame.nb_samples = ctx->cur_frame_length;
     if ((ret = ff_get_buffer(avctx, &ctx->frame)) < 0) {
-        av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
+        av_log(avctx, AV_LOG_ERROR, "get_buffer() failed!\n");
         return ret;
     }
 
-- 
1.7.4.3



More information about the ffmpeg-devel mailing list