diff options
author | James Almer <jamrial@gmail.com> | 2015-04-09 03:56:58 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-04-09 22:37:39 -0300 |
commit | 3553b815f66cb42f79706d6be5c11c0b13d9ac2e (patch) | |
tree | 6c57e7676b9552b4a827d1933dc50da1d2ee2ffe /libavcodec | |
parent | eff72a6c7375587a3280ddf59e6e26a4907823b7 (diff) | |
download | ffmpeg-streaming-3553b815f66cb42f79706d6be5c11c0b13d9ac2e.zip ffmpeg-streaming-3553b815f66cb42f79706d6be5c11c0b13d9ac2e.tar.gz |
avcodec/libdcadec: honor AVCodecContext bitexact flag
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libdcadec.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/libdcadec.c b/libavcodec/libdcadec.c index 3ac4bcb..9ea61fa 100644 --- a/libavcodec/libdcadec.c +++ b/libavcodec/libdcadec.c @@ -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); |