Mercurial > libavcodec.hg
changeset 1825:231a6c19e28f libavcodec
av_log()
author | michael |
---|---|
date | Mon, 23 Feb 2004 15:59:21 +0000 |
parents | 2e4581d6ba94 |
children | 5fb6572ca817 |
files | amr.c |
diffstat | 1 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/amr.c Sun Feb 22 21:22:47 2004 +0000 +++ b/amr.c Mon Feb 23 15:59:21 2004 +0000 @@ -141,7 +141,7 @@ 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 @@ { 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 @@ { 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 @@ { 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 @@ 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 @@ { 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 @@ { 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 @@ { 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 @@ { 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 @@ { if(avctx->debug) { - fprintf(stderr, "Only mono supported\n"); + av_log(avctx, AV_LOG_DEBUG, "Only mono supported\n"); } return -1; }