summaryrefslogtreecommitdiffstats
path: root/libavcodec/amr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-02-23 15:59:21 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-02-23 15:59:21 +0000
commit560ff8095fcbc380026677784077e4aebde9288a (patch)
treee2fd87c93368ea5c4cb5a514cf9cfa7c340aacf7 /libavcodec/amr.c
parent310ffb8f262651482365228782cc08215d5ac138 (diff)
downloadffmpeg-streaming-560ff8095fcbc380026677784077e4aebde9288a.zip
ffmpeg-streaming-560ff8095fcbc380026677784077e4aebde9288a.tar.gz
av_log()
Originally committed as revision 2808 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/amr.c')
-rw-r--r--libavcodec/amr.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libavcodec/amr.c b/libavcodec/amr.c
index 6ce8971..e884da5 100644
--- a/libavcodec/amr.c
+++ b/libavcodec/amr.c
@@ -141,7 +141,7 @@ static int amr_nb_decode_init(AVCodecContext * avctx)
if(Speech_Decode_Frame_init(&s->speech_decoder_state, "Decoder"))
{
- printf("Speech_Decode_Frame_init error\n");
+ av_log(avctx, AV_LOG_ERROR, "Speech_Decode_Frame_init error\n");
return -1;
}
return 0;
@@ -161,7 +161,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
{
if(avctx->debug)
{
- fprintf(stderr, "Only 8000Hz sample rate supported\n");
+ av_log(avctx, AV_LOG_DEBUG, "Only 8000Hz sample rate supported\n");
}
return -1;
}
@@ -170,7 +170,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
{
if(avctx->debug)
{
- fprintf(stderr, "Only mono supported\n");
+ av_log(avctx, AV_LOG_DEBUG, "Only mono supported\n");
}
return -1;
}
@@ -182,7 +182,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
{
if(avctx->debug)
{
- fprintf(stderr, "Speech_Encode_Frame_init error\n");
+ av_log(avctx, AV_LOG_DEBUG, "Speech_Encode_Frame_init error\n");
}
return -1;
}
@@ -344,7 +344,7 @@ static int amr_nb_decode_init(AVCodecContext * avctx)
s->decState=Decoder_Interface_init();
if(!s->decState)
{
- printf("Decoder_Interface_init error\r\n");
+ av_log(avctx, AV_LOG_ERROR, "Decoder_Interface_init error\r\n");
return -1;
}
return 0;
@@ -359,7 +359,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
{
if(avctx->debug)
{
- fprintf(stderr, "Only 8000Hz sample rate supported\n");
+ av_log(avctx, AV_LOG_DEBUG, "Only 8000Hz sample rate supported\n");
}
return -1;
}
@@ -368,7 +368,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
{
if(avctx->debug)
{
- fprintf(stderr, "Only mono supported\n");
+ av_log(avctx, AV_LOG_DEBUG, "Only mono supported\n");
}
return -1;
}
@@ -381,7 +381,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
{
if(avctx->debug)
{
- fprintf(stderr, "Encoder_Interface_init error\n");
+ av_log(avctx, AV_LOG_DEBUG, "Encoder_Interface_init error\n");
}
return -1;
}
@@ -543,7 +543,7 @@ static int amr_wb_encode_init(AVCodecContext * avctx)
{
if(avctx->debug)
{
- fprintf(stderr, "Only 16000Hz sample rate supported\n");
+ av_log(avctx, AV_LOG_DEBUG, "Only 16000Hz sample rate supported\n");
}
return -1;
}
@@ -552,7 +552,7 @@ static int amr_wb_encode_init(AVCodecContext * avctx)
{
if(avctx->debug)
{
- fprintf(stderr, "Only mono supported\n");
+ av_log(avctx, AV_LOG_DEBUG, "Only mono supported\n");
}
return -1;
}
OpenPOWER on IntegriCloud