[05/12] libopencore-amr: Don't print carriage returns in log messages

Message ID 1302645498-12642-5-git-send-email-martin@martin.st
State Committed
Headers show

Commit Message

Martin Storsjö April 12, 2011, 9:58 p.m.
---
 libavcodec/libopencore-amr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Ronald Bultje April 12, 2011, 11:36 p.m. | #1
Hi,

On Tue, Apr 12, 2011 at 5:58 PM, Martin Storsjö <martin@martin.st> wrote:
> ---
>  libavcodec/libopencore-amr.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
> index 13594fa..e6958c9 100644
> --- a/libavcodec/libopencore-amr.c
> +++ b/libavcodec/libopencore-amr.c
> @@ -82,7 +82,7 @@ static av_cold int amr_nb_decode_init(AVCodecContext *avctx)
>
>     s->decState   = Decoder_Interface_init();
>     if (!s->decState) {
> -        av_log(avctx, AV_LOG_ERROR, "Decoder_Interface_init error\r\n");
> +        av_log(avctx, AV_LOG_ERROR, "Decoder_Interface_init error\n");
>         return -1;
>     }

OK.

Ronald

Patch

diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index 13594fa..e6958c9 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -82,7 +82,7 @@  static av_cold int amr_nb_decode_init(AVCodecContext *avctx)
 
     s->decState   = Decoder_Interface_init();
     if (!s->decState) {
-        av_log(avctx, AV_LOG_ERROR, "Decoder_Interface_init error\r\n");
+        av_log(avctx, AV_LOG_ERROR, "Decoder_Interface_init error\n");
         return -1;
     }