[FFmpeg-cvslog] aacdec: Use avpriv_report_missing_feature() instead of custom logging.
Alex Converse
git at videolan.org
Wed Oct 23 10:00:48 CEST 2013
ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Tue Oct 22 03:41:04 2013 -0700| [f457edb69794c7e13b3630456d72f7942fff19f7] | committer: Alex Converse
aacdec: Use avpriv_report_missing_feature() instead of custom logging.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f457edb69794c7e13b3630456d72f7942fff19f7
---
libavcodec/aacdec.c | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 824839a..435caab 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -754,9 +754,9 @@ static int decode_ga_specific_config(AACContext *ac, AVCodecContext *avctx,
case AOT_ER_AAC_LD:
res_flags = get_bits(gb, 3);
if (res_flags) {
- av_log(avctx, AV_LOG_ERROR,
- "AAC data resilience not supported (flags %x)\n",
- res_flags);
+ avpriv_report_missing_feature(avctx, AV_LOG_ERROR,
+ "AAC data resilience (flags %x)",
+ res_flags);
return AVERROR_PATCHWELCOME;
}
break;
@@ -770,9 +770,8 @@ static int decode_ga_specific_config(AACContext *ac, AVCodecContext *avctx,
case AOT_ER_AAC_LD:
ep_config = get_bits(gb, 2);
if (ep_config) {
- av_log(avctx, AV_LOG_ERROR,
- "epConfig %d is not supported.\n",
- ep_config);
+ avpriv_report_missing_feature(avctx, AV_LOG_ERROR,
+ "epConfig %d", ep_config);
return AVERROR_PATCHWELCOME;
}
}
@@ -838,10 +837,10 @@ static int decode_audio_specific_config(AACContext *ac,
return ret;
break;
default:
- av_log(avctx, AV_LOG_ERROR,
- "Audio object type %s%d is not supported.\n",
- m4ac->sbr == 1 ? "SBR+" : "",
- m4ac->object_type);
+ avpriv_report_missing_feature(avctx, AV_LOG_ERROR,
+ "Audio object type %s%d",
+ m4ac->sbr == 1 ? "SBR+" : "",
+ m4ac->object_type);
return AVERROR(ENOSYS);
}
More information about the ffmpeg-cvslog
mailing list