From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id C8D6E47AFD for ; Thu, 1 Feb 2024 08:29:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 31DDF68CE08; Thu, 1 Feb 2024 10:29:56 +0200 (EET) Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5F50C6881B1 for ; Thu, 1 Feb 2024 10:29:49 +0200 (EET) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=pI+zjGWc; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 7F2824442 for ; Thu, 1 Feb 2024 09:29:48 +0100 (CET) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id RTd4HRDXm7eV for ; Thu, 1 Feb 2024 09:29:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1706776187; bh=3bcZLZHrUGIvuwNJpZXN5EMndTvV1VF/d6CkIBqcbZc=; h=From:To:Subject:Date:From; b=pI+zjGWcmErFVHUessx7U/ttOaFSTJOV9nmYN9U57tPJv0Utf9mA5FPVExOUma4BJ cTIKyv2snFJfsfIKr1NjkGEAJuaMB21tcD2m8xCW+d0Xs+/xMTyhTOop/k3JMVSVaJ x9FIScBsqMD98SnUZXRVSVDU7J/onEmg11umvRjwYmVJnnufb/4/YhU3rTeEF6UljW SO9UcCSoLHdyhUJ+Mf82zZhTZgCBXdVtRYOZaG8AnjlTq5vFCaqC0HMnlCkY2gbeia tXFJjAQ+Xk48e9wJLeCHuGm0U1fzcaWU91zdr5WMar1FUbeH8BQ3aFM67bMc0e6FYs WF7VlcQ6WXPXw== Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id 5DA6B72E for ; Thu, 1 Feb 2024 09:29:47 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 087173A054A for ; Thu, 1 Feb 2024 09:29:41 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Thu, 1 Feb 2024 09:29:35 +0100 Message-ID: <20240201082938.16687-1-anton@khirnov.net> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/4] lavf/mpegts: drop a cargo-culted check X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: This check has survived the transition to AVCodecParameters, but is no longer relevant after it, since the codec context is no longer updated or accessed at all from the demuxer. --- libavformat/mpegts.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index bef00c88e7..1cf390e98e 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -919,11 +919,6 @@ static int mpegts_set_stream_info(AVStream *st, PESContext *pes, int old_codec_id = st->codecpar->codec_id; int old_codec_tag = st->codecpar->codec_tag; - if (avcodec_is_open(sti->avctx)) { - av_log(pes->stream, AV_LOG_DEBUG, "cannot set stream info, internal codec is open\n"); - return 0; - } - avpriv_set_pts_info(st, 33, 1, 90000); st->priv_data = pes; st->codecpar->codec_type = AVMEDIA_TYPE_DATA; -- 2.42.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".