diff options
author | Clément Bœsch <cboesch@gopro.com> | 2017-03-31 10:40:34 +0200 |
---|---|---|
committer | Clément Bœsch <cboesch@gopro.com> | 2017-03-31 10:40:34 +0200 |
commit | e3287077ecff33bd02227b85ec760fe47d796f54 (patch) | |
tree | d94ccb713264f90ad6048bfab85ef7fb85807fca /libavcodec/alac.c | |
parent | b6c293d5e609a7b651c47d3de4749840ae00492e (diff) | |
parent | 67deba8a416d818f3d95aef0aa916589090396e2 (diff) | |
download | ffmpeg-e3287077ecff33bd02227b85ec760fe47d796f54.tar.gz |
Merge commit '67deba8a416d818f3d95aef0aa916589090396e2'
* commit '67deba8a416d818f3d95aef0aa916589090396e2':
Use avpriv_report_missing_feature() where appropriate
Merged-by: Clément Bœsch <cboesch@gopro.com>
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r-- | libavcodec/alac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c index ae1204bce1..d6bd21ba13 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -251,7 +251,7 @@ static int decode_element(AVCodecContext *avctx, AVFrame *frame, int ch_index, alac->extra_bits = get_bits(&alac->gb, 2) << 3; bps = alac->sample_size - alac->extra_bits + channels - 1; if (bps > 32U) { - av_log(avctx, AV_LOG_ERROR, "bps is unsupported: %d\n", bps); + avpriv_report_missing_feature(avctx, "bps %d", bps); return AVERROR_PATCHWELCOME; } @@ -431,7 +431,7 @@ static int alac_decode_frame(AVCodecContext *avctx, void *data, break; } if (element > TYPE_CPE && element != TYPE_LFE) { - av_log(avctx, AV_LOG_ERROR, "syntax element unsupported: %d\n", element); + avpriv_report_missing_feature(avctx, "Syntax element %d", element); return AVERROR_PATCHWELCOME; } @@ -583,8 +583,8 @@ static av_cold int alac_decode_init(AVCodecContext * avctx) avctx->channels = alac->channels; } if (avctx->channels > ALAC_MAX_CHANNELS || avctx->channels <= 0 ) { - av_log(avctx, AV_LOG_ERROR, "Unsupported channel count: %d\n", - avctx->channels); + avpriv_report_missing_feature(avctx, "Channel count %d", + avctx->channels); return AVERROR_PATCHWELCOME; } avctx->channel_layout = ff_alac_channel_layouts[alac->channels - 1]; |