changeset 1826:5fb6572ca817 libavcodec

av_log patch by ("Steven M. Schultz" <sms at 2BSD dot COM>)
author michael
date Mon, 23 Feb 2004 16:07:30 +0000
parents 231a6c19e28f
children fcbf31baa1af
files faac.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/faac.c	Mon Feb 23 15:59:21 2004 +0000
+++ b/faac.c	Mon Feb 23 16:07:30 2004 +0000
@@ -46,8 +46,7 @@
     /* 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 @@
     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;
     }