Commit bf8f75f0 authored by michael's avatar michael

av_log patch by ("Steven M. Schultz" <sms at 2BSD dot COM>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2809 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c2939fcc
...@@ -46,8 +46,7 @@ static int Faac_encode_init(AVCodecContext *avctx) ...@@ -46,8 +46,7 @@ static int Faac_encode_init(AVCodecContext *avctx)
/* check faac version */ /* check faac version */
faac_cfg = faacEncGetCurrentConfiguration(s->faac_handle); faac_cfg = faacEncGetCurrentConfiguration(s->faac_handle);
if (faac_cfg->version != FAAC_CFG_VERSION) { if (faac_cfg->version != FAAC_CFG_VERSION) {
fprintf(stderr, "wrong libfaac version (compiled for: %d, using %d)\n", av_log(avctx, AV_LOG_ERROR, "wrong libfaac version (compiled for: %d, using %d)\n", FAAC_CFG_VERSION, faac_cfg->version);
FAAC_CFG_VERSION, faac_cfg->version );
faacEncClose(s->faac_handle); faacEncClose(s->faac_handle);
return -1; return -1;
} }
...@@ -62,7 +61,7 @@ static int Faac_encode_init(AVCodecContext *avctx) ...@@ -62,7 +61,7 @@ static int Faac_encode_init(AVCodecContext *avctx)
faac_cfg->inputFormat = FAAC_INPUT_16BIT; faac_cfg->inputFormat = FAAC_INPUT_16BIT;
if (!faacEncSetConfiguration(s->faac_handle, faac_cfg)) { 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; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment