diff options
author | James Almer <jamrial@gmail.com> | 2015-11-27 15:08:44 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-11-29 12:53:14 -0300 |
commit | 27ce53b52d0d5f2c1d59da13491b74fe73cde964 (patch) | |
tree | db4e2561916c7f5ebc06035cb438d0c299d2da17 /libavcodec | |
parent | 26a84e2dae4007628d30cae746822486076767ee (diff) | |
download | ffmpeg-27ce53b52d0d5f2c1d59da13491b74fe73cde964.tar.gz |
avcodec/libdcadec: require first public release
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libdcadec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/libdcadec.c b/libavcodec/libdcadec.c index a0e34f9528..e8020762ba 100644 --- a/libavcodec/libdcadec.c +++ b/libavcodec/libdcadec.c @@ -42,7 +42,7 @@ static int dcadec_decode_frame(AVCodecContext *avctx, void *data, { DCADecContext *s = avctx->priv_data; AVFrame *frame = data; - av_unused struct dcadec_exss_info *exss; + struct dcadec_exss_info *exss; int ret, i, k; int **samples, nsamples, channel_mask, sample_rate, bits_per_sample, profile; uint32_t mrk; @@ -78,6 +78,8 @@ static int dcadec_decode_frame(AVCodecContext *avctx, void *data, &sample_rate, &bits_per_sample, &profile)) < 0) { av_log(avctx, AV_LOG_ERROR, "dcadec_context_filter() failed: %d (%s)\n", -ret, dcadec_strerror(ret)); return AVERROR_EXTERNAL; + } else if (ret > 0) { + av_log(avctx, AV_LOG_WARNING, "dcadec_context_filter() warning: %d (%s)\n", ret, dcadec_strerror(ret)); } avctx->channels = av_get_channel_layout_nb_channels(channel_mask); @@ -129,7 +131,6 @@ static int dcadec_decode_frame(AVCodecContext *avctx, void *data, } else avctx->bit_rate = 0; -#if HAVE_STRUCT_DCADEC_EXSS_INFO_MATRIX_ENCODING if (exss = dcadec_context_get_exss_info(s->ctx)) { enum AVMatrixEncoding matrix_encoding = AV_MATRIX_ENCODING_NONE; @@ -158,7 +159,6 @@ static int dcadec_decode_frame(AVCodecContext *avctx, void *data, (ret = ff_side_data_update_matrix_encoding(frame, matrix_encoding)) < 0) return ret; } -#endif frame->nb_samples = nsamples; if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) |