mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-08 17:11:08 +00:00
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:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user