mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-12 18:31:37 +00:00
avcodec/libdcadec: honor AVCodecContext bitexact flag
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
eff72a6c73
commit
3553b815f6
@ -167,8 +167,13 @@ static av_cold int dcadec_close(AVCodecContext *avctx)
|
||||
static av_cold int dcadec_init(AVCodecContext *avctx)
|
||||
{
|
||||
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)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user