From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 7B2EF4D726 for <ffmpegdev@gitmailbox.com>; Sat, 19 Apr 2025 16:18:44 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 416D0687C2B; Sat, 19 Apr 2025 19:18:41 +0300 (EEST) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0B239687C2B for <ffmpeg-devel@ffmpeg.org>; Sat, 19 Apr 2025 19:18:33 +0300 (EEST) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-736a72220edso2695017b3a.3 for <ffmpeg-devel@ffmpeg.org>; Sat, 19 Apr 2025 09:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745079512; x=1745684312; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4c7Mjq+mcqwZFfll9oi8rgTEJCbWqx9GQwSQwQwqEEI=; b=S6kRscRqt7jGhcwWmZQRga4SurE7hseSzi/QKZDxdFILO3HOEwQky2SMApgF4RQ4eA k1Evd/7VN8UTmOtdgHVOv2Eq5lFSUSIMsnPOEwxpsix5w2yrQ7KaDJZ7fcQT0u9YuP8I 0P6E5tqRxHBYSpYbr82G58TEL7F4GLXOVWX0gLiOw0ymS+tMFLpKpEaar9ab2GaPDJSd c8y8LPvfNqcFkOx94M4wazzCt4GijsOn9hOTSwrRiO/KsBHb0dmqnaQ2qTZs0VxNIix8 UugWbRNdt8qYAQTWIrEoEtaHil7BakMahGwZf/PJ7frfyxYgVKdZRvKcJ037jbil5Y0i C/3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745079512; x=1745684312; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4c7Mjq+mcqwZFfll9oi8rgTEJCbWqx9GQwSQwQwqEEI=; b=wa9bDfaJleU3iAnJijfnqNx7AXxa0nsao2fMDa6LgJSco89Pv+Iyx3bBXvCdbBT8Zg Wn4jnLcse0t33inkpV1LqBl+u2ahFwpexo7OQhkxC71NYc4fX2mG4IuidLgKCZxSsaH1 4MVcqRJAiSbTMm9G/9xmbNzFi9o8rbYv2/6noAmTu7T52tgWpsBb+GQ7yvvr/JUdbNQU NlnshYIyNukga/ieHrM/fpgRGueBGLOC9jyZsNpVKHthh/X+VIrcQBPcVMCW+IlZeJnt +ky3FezUeQB5k+peduOxTHH/e8qqwtjn7/cvxF7z6PFklmzhGKuVbj+9RZV60iE5vrBH 4bgQ== X-Gm-Message-State: AOJu0YzIwYylX+Mtu1DnobgmzZlArU3BmdpWW+he6YhOtlNOW7zPYKFu gACI/y3H9Rn7h0SHI34a3aBNiq1EcOop6CFIaArd+BU3841G6tWhmE1IqK/y X-Gm-Gg: ASbGncteQas2BU6Yw8koSPM7KTjZP3R67/iYlEGHbUvSJxPCpO0uFyGRCVW3wjnexyB GU3tSlBl7OadR6rwwf/m4XRosn6vI62jRg14YMOlwfLlsxJDbQhoII4VNR5/PLRaeH+dkYEllco Vx3rgtXn/MMs1YSNN5yIg4fq5oY7RP36HIlc3AqWhLX6yBqVLAvPx6mY68GaCeg93IQNpJwVzyN j//t+RdfB9PgOeaR7B34DMurQ/jYiQZph/CjXWIk1pNoA9/xj4M0nl0CZOHTTXTkuOHQc1esdg2 2xJzQOAxEMzbJzVFlWqYvKN55YueLNE+R9tcC2aOMRvFlx2vswPTuG4= X-Google-Smtp-Source: AGHT+IFdLgb6bqKH7RkERcweKHKBfifeOc/ryWwUd3Okr+/ypz9hwT2EclnxtdGWBDsLK9FB1TAPCQ== X-Received: by 2002:a05:6a21:9186:b0:1f5:889c:3cbd with SMTP id adf61e73a8af0-203cbd23855mr10798221637.35.1745079511952; Sat, 19 Apr 2025 09:18:31 -0700 (PDT) Received: from homestead.aragog.com ([2605:a601:a9a2:a100:67c:16ff:fe02:37f0]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73dbfa574fasm3580539b3a.99.2025.04.19.09.18.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Apr 2025 09:18:31 -0700 (PDT) From: Pavel Koshevoy <pkoshevoy@gmail.com> To: ffmpeg-devel@ffmpeg.org Date: Sat, 19 Apr 2025 10:18:29 -0600 Message-ID: <20250419161829.30032-1-pkoshevoy@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avformat/mpegts: update stream info when PMT ES stream_type changes X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Pavel Koshevoy <pkoshevoy@gmail.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> Archived-At: <https://master.gitmailbox.com/ffmpegdev/20250419161829.30032-1-pkoshevoy@gmail.com/> List-Archive: <https://master.gitmailbox.com/ffmpegdev/> List-Post: <mailto:ffmpegdev@gitmailbox.com> I have a couple of .ts captures where video and audio codec changes even though the PMT version does not change and the PIDs stay the same. --- libavformat/mpegts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 54594b3a11..8a72d6988a 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2508,7 +2508,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len if (!st) goto out; - if (pes && !pes->stream_type) + if (pes && pes->stream_type != stream_type) mpegts_set_stream_info(st, pes, stream_type, prog_reg_desc); add_pid_to_program(prg, pid); -- 2.43.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".