PR #24396 opened by ffmpeg-devel URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24396 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24396.patch
**Backport:** https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24389 The output stream no longer has extension sub-streams, so the declared input profile, if it was set, is no longer valid. Fixes issue #24388. >From 40be1c51b9747240f0250b3ca295702e7c271296 Mon Sep 17 00:00:00 2001 From: James Almer <[email protected]> Date: Sun, 6 Sep 2026 18:17:13 -0300 Subject: [PATCH] avcodec/bsf/dca_core: clear profile value on init() The output stream no longer has extension sub-streams, so the declared input profile, if it was set, is no longer valid. Fixes issue #24388. Signed-off-by: James Almer <[email protected]> (cherry picked from commit 7dc71230a965c5938a0947408dc4ec7c8b9fe4ca) --- libavcodec/bsf/dca_core.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libavcodec/bsf/dca_core.c b/libavcodec/bsf/dca_core.c index 1a2db39cba..b2b9397433 100644 --- a/libavcodec/bsf/dca_core.c +++ b/libavcodec/bsf/dca_core.c @@ -23,6 +23,13 @@ #include "bytestream.h" #include "dca_syncwords.h" +static int dca_core_init(AVBSFContext *ctx) +{ + ctx->par_out->profile = AV_PROFILE_UNKNOWN; + + return 0; +} + static int dca_core_filter(AVBSFContext *ctx, AVPacket *pkt) { GetByteContext gb; @@ -57,5 +64,6 @@ static const enum AVCodecID codec_ids[] = { const FFBitStreamFilter ff_dca_core_bsf = { .p.name = "dca_core", .p.codec_ids = codec_ids, + .init = dca_core_init, .filter = dca_core_filter, }; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
