This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/6.1
in repository ffmpeg.

commit 8b3467b31f8acc3fe880d887dd220a3879dd78a2
Author:     James Almer <[email protected]>
AuthorDate: Wed Jul 29 21:45:53 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Thu Jul 30 21:51:43 2026 -0300

    avcodec/bsf/truehd_core: clear profile value on init()
    
    The output stream no longer has Atmos metadata, so the
    AV_PROFILE_TRUEHD_ATMOS profile, if it was set, is no longer valid.
    
    Fixes issue #23195.
    
    Signed-off-by: James Almer <[email protected]>
    (cherry picked from commit 86940d45aff7d59810794df3ab2b39b7b83b478c)
---
 libavcodec/truehd_core_bsf.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libavcodec/truehd_core_bsf.c b/libavcodec/truehd_core_bsf.c
index ee1060b021..8179bfbf67 100644
--- a/libavcodec/truehd_core_bsf.c
+++ b/libavcodec/truehd_core_bsf.c
@@ -34,6 +34,13 @@ typedef struct TrueHDCoreContext {
     MLPHeaderInfo hdr;
 } TrueHDCoreContext;
 
+static int truehd_core_init(AVBSFContext *ctx)
+{
+    ctx->par_out->profile = AV_PROFILE_UNKNOWN;
+
+    return 0;
+}
+
 static int truehd_core_filter(AVBSFContext *ctx, AVPacket *pkt)
 {
     TrueHDCoreContext *s = ctx->priv_data;
@@ -177,6 +184,7 @@ const FFBitStreamFilter ff_truehd_core_bsf = {
     .p.name         = "truehd_core",
     .p.codec_ids    = codec_ids,
     .priv_data_size = sizeof(TrueHDCoreContext),
+    .init           = truehd_core_init,
     .filter         = truehd_core_filter,
     .flush          = truehd_core_flush,
 };

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to