[FFmpeg-cvslog] avcodec/mlpenc: change flag for shorten_by in THD case
Paul B Mahol
git at videolan.org
Mon Oct 9 19:45:02 EEST 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Oct 9 18:24:49 2023 +0200| [8786b916075655b3b4df9a338ad978521673418c] | committer: Paul B Mahol
avcodec/mlpenc: change flag for shorten_by in THD case
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8786b916075655b3b4df9a338ad978521673418c
---
libavcodec/mlpenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
More information about the ffmpeg-cvslog
mailing list