summaryrefslogtreecommitdiff
path: root/libavcodec/mlpenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-10-09 18:24:49 +0200
committerPaul B Mahol <onemda@gmail.com>2023-10-09 18:42:43 +0200
commit8786b916075655b3b4df9a338ad978521673418c (patch)
treeec47849dd3a77d6a4d8a84dbec95f6ae6bdd5e91 /libavcodec/mlpenc.c
parent27c623b3d59439b8916abc4677feb902b6a279f9 (diff)
avcodec/mlpenc: change flag for shorten_by in THD case
Diffstat (limited to 'libavcodec/mlpenc.c')
-rw-r--r--libavcodec/mlpenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index 8ba7c04a75..ae3a1ac258 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -1043,7 +1043,7 @@ static uint8_t *write_substr(MLPEncodeContext *ctx, uint8_t *buf, int buf_size,
if (ctx->last_frames == 0 && ctx->shorten_by) {
if (ctx->avctx->codec_id == AV_CODEC_ID_TRUEHD) {
put_bits(&pb, 16, END_OF_STREAM & 0xFFFF);
- put_bits(&pb, 16, (ctx->shorten_by & 0x1FFF) | 0x2000);
+ put_bits(&pb, 16, (ctx->shorten_by & 0x1FFF) | 0xE000);
} else {
put_bits32(&pb, END_OF_STREAM);
}