ffmpeg | branch: master | Paul B Mahol <one...@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);
         }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to