Commit 3553b815 authored by James Almer's avatar James Almer

avcodec/libdcadec: honor AVCodecContext bitexact flag

Reviewed-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent eff72a6c
...@@ -167,8 +167,13 @@ static av_cold int dcadec_close(AVCodecContext *avctx) ...@@ -167,8 +167,13 @@ static av_cold int dcadec_close(AVCodecContext *avctx)
static av_cold int dcadec_init(AVCodecContext *avctx) static av_cold int dcadec_init(AVCodecContext *avctx)
{ {
DCADecContext *s = avctx->priv_data; DCADecContext *s = avctx->priv_data;
int flags = 0;
s->ctx = dcadec_context_create(0); /* Affects only lossy DTS profiles. DTS-HD MA is always bitexact */
if (avctx->flags & CODEC_FLAG_BITEXACT)
flags |= DCADEC_FLAG_CORE_BIT_EXACT;
s->ctx = dcadec_context_create(flags);
if (!s->ctx) if (!s->ctx)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment