[FFmpeg-cvslog] r20794 - trunk/libavcodec/libfaad.c
Justin Ruggles
justin.ruggles
Thu Dec 10 23:48:10 CET 2009
cehoyos wrote:
> Author: cehoyos
> Date: Thu Dec 10 23:29:21 2009
> New Revision: 20794
>
> Log:
> Do not print 'faac:' when using libfaad.
>
> Modified:
> trunk/libavcodec/libfaad.c
>
> Modified: trunk/libavcodec/libfaad.c
> ==============================================================================
> --- trunk/libavcodec/libfaad.c Thu Dec 10 21:05:04 2009 (r20793)
> +++ trunk/libavcodec/libfaad.c Thu Dec 10 23:29:21 2009 (r20794)
> @@ -183,7 +183,7 @@ static int faac_decode_frame(AVCodecCont
> unsigned char channels;
> int r = s->faacDecInit(s->faac_handle, buf, buf_size, &srate, &channels);
> if(r < 0){
> - av_log(avctx, AV_LOG_ERROR, "faac: codec init failed.\n");
> + av_log(avctx, AV_LOG_ERROR, "libfaad: codec init failed.\n");
> return -1;
> }
> avctx->sample_rate = srate;
> @@ -195,7 +195,7 @@ static int faac_decode_frame(AVCodecCont
> out = s->faacDecDecode(s->faac_handle, &frame_info, (unsigned char*)buf, (unsigned long)buf_size);
>
> if (frame_info.error > 0) {
> - av_log(avctx, AV_LOG_ERROR, "faac: frame decoding failed: %s\n",
> + av_log(avctx, AV_LOG_ERROR, "libfaad: frame decoding failed: %s\n",
> s->faacDecGetErrorMessage(frame_info.error));
> return -1;
> }
av_log() already prints the codec name, why print it again in the error
message?
-Justin
More information about the ffmpeg-cvslog
mailing list