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 <jamrial@gmail.com>
(cherry picked from commit 86940d45af)
This commit is contained in:
James Almer
2026-07-29 21:45:53 -03:00
parent 6d97175e92
commit 1fdbca85aa

View File

@@ -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,
};