X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fdcadec.c;h=e53b03e8f9dcd58bf51ac83b2827b55a7b8142d1;hb=9c9ede44f37e291677c0db1c5fabf1c3f6106008;hp=96f1ee20b204e8662e1bb51f41e9fbe2cc4e042d;hpb=182821cff43f5f977004d105b86c47ceb20d00d6;p=ffmpeg diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c index 96f1ee20b20..e53b03e8f9d 100644 --- a/libavcodec/dcadec.c +++ b/libavcodec/dcadec.c @@ -30,7 +30,6 @@ #include "libavutil/common.h" #include "libavutil/float_dsp.h" #include "libavutil/internal.h" -#include "libavutil/intmath.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" #include "libavutil/samplefmt.h" @@ -42,6 +41,7 @@ #include "dcahuff.h" #include "dca.h" #include "dca_parser.h" +#include "mathops.h" #include "synth_filter.h" #include "dcadsp.h" #include "fmtconvert.h" @@ -1598,14 +1598,15 @@ static void dca_exss_parse_header(DCAContext *s) num_audiop = get_bits(&s->gb, 3) + 1; if (num_audiop > 1) { - av_log_ask_for_sample(s->avctx, "Multiple DTS-HD audio presentations."); + avpriv_request_sample(s->avctx, + "Multiple DTS-HD audio presentations"); /* ignore such streams for now */ return; } num_assets = get_bits(&s->gb, 3) + 1; if (num_assets > 1) { - av_log_ask_for_sample(s->avctx, "Multiple DTS-HD audio assets."); + avpriv_request_sample(s->avctx, "Multiple DTS-HD audio assets"); /* ignore such streams for now */ return; } @@ -1836,7 +1837,7 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data, /* get output buffer */ frame->nb_samples = 256 * (s->sample_blocks / 8); - if ((ret = ff_get_buffer(avctx, frame)) < 0) { + if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) { av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); return ret; }