PR #24399 opened by ffmpeg-devel
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24399
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24399.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 9b0578816c6f94514d330d4f2ae7e44a9fb42692 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 a239e7fa07..12a46714b5 100644
--- a/libavcodec/bsf/dca_core.c
+++ b/libavcodec/bsf/dca_core.c
@@ -23,6 +23,13 @@
 #include "libavcodec/bytestream.h"
 #include "libavcodec/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]

Reply via email to