From c0a2c42f59329811fc08a2c982d394ab49204b01 Mon Sep 17 00:00:00 2001 From: "Steven M. Schultz" Date: Mon, 23 Feb 2004 16:07:30 +0000 Subject: [PATCH] av_log patch by ("Steven M. Schultz" ) Originally committed as revision 2809 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/faac.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavcodec/faac.c b/libavcodec/faac.c index 9720166e42..a65bdefae5 100644 --- a/libavcodec/faac.c +++ b/libavcodec/faac.c @@ -46,8 +46,7 @@ static int Faac_encode_init(AVCodecContext *avctx) /* check faac version */ faac_cfg = faacEncGetCurrentConfiguration(s->faac_handle); if (faac_cfg->version != FAAC_CFG_VERSION) { - fprintf(stderr, "wrong libfaac version (compiled for: %d, using %d)\n", - FAAC_CFG_VERSION, faac_cfg->version ); + av_log(avctx, AV_LOG_ERROR, "wrong libfaac version (compiled for: %d, using %d)\n", FAAC_CFG_VERSION, faac_cfg->version); faacEncClose(s->faac_handle); return -1; } @@ -62,7 +61,7 @@ static int Faac_encode_init(AVCodecContext *avctx) faac_cfg->inputFormat = FAAC_INPUT_16BIT; if (!faacEncSetConfiguration(s->faac_handle, faac_cfg)) { - fprintf(stderr, "libfaac doesn't support this output format!\n"); + av_log(avctx, AV_LOG_ERROR, "libfaac doesn't support this output format!\n"); return -1; }