aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorSteven M. Schultz <sms@2bsd.com>2004-02-23 16:07:30 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-02-23 16:07:30 +0000
commitc0a2c42f59329811fc08a2c982d394ab49204b01 (patch)
tree2a511b6672532bb63a133d461cebc331215c6a5d /libavcodec
parent560ff8095fcbc380026677784077e4aebde9288a (diff)
downloadffmpeg-c0a2c42f59329811fc08a2c982d394ab49204b01.tar.gz
av_log patch by ("Steven M. Schultz" <sms at 2BSD dot COM>)
Originally committed as revision 2809 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/faac.c5
1 files 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;
}