Revision c0a2c42f

View differences:

libavcodec/faac.c
46 46
    /* check faac version */
47 47
    faac_cfg = faacEncGetCurrentConfiguration(s->faac_handle);
48 48
    if (faac_cfg->version != FAAC_CFG_VERSION) {
49
        fprintf(stderr, "wrong libfaac version (compiled for: %d, using %d)\n",
50
                FAAC_CFG_VERSION, faac_cfg->version );
49
	av_log(avctx, AV_LOG_ERROR, "wrong libfaac version (compiled for: %d, using %d)\n", FAAC_CFG_VERSION, faac_cfg->version);
51 50
        faacEncClose(s->faac_handle);
52 51
        return -1;
53 52
    }
......
62 61
    faac_cfg->inputFormat = FAAC_INPUT_16BIT;
63 62

  
64 63
    if (!faacEncSetConfiguration(s->faac_handle, faac_cfg)) {
65
        fprintf(stderr, "libfaac doesn't support this output format!\n");
64
        av_log(avctx, AV_LOG_ERROR, "libfaac doesn't support this output format!\n");
66 65
        return -1;
67 66
    }
68 67

  

Also available in: Unified diff