Skip to content
Snippets Groups Projects
Commit 3553b815 authored by James Almer's avatar James Almer
Browse files

avcodec/libdcadec: honor AVCodecContext bitexact flag

parent eff72a6c
No related branches found
No related tags found
No related merge requests found
...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment