From patchwork Tue May 2 09:37:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 41443 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:dca6:b0:f3:34fa:f187 with SMTP id ky38csp3845860pzb; Tue, 2 May 2023 02:38:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4DcX7Ihyi1Nihv5fz/vwNfsc1lItxip0NI0raexwLiNg8ukBs7bJgC5Ka4njDzYpXpdvbE X-Received: by 2002:a17:906:7945:b0:94e:d84e:d4d0 with SMTP id l5-20020a170906794500b0094ed84ed4d0mr15417837ejo.18.1683020316890; Tue, 02 May 2023 02:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683020316; cv=none; d=google.com; s=arc-20160816; b=al57jg+02IR8q0dct/ikBEwoDb2ZrYs9yukahadGBQBCfDtFNY0D7cIHkT4HPZGnOK y3ZHBHidJ6Phb3KXjAKOIiKxOY8y4da2IKhHElpxNiM6GpnQhVMJsiV9ZwLFkDFnPlBm iv/YD7ZBTSbAJJ0XZNM9m0qzJNPn27XX6drfERu/HQn+AQhuoTc6mCLcrJHk7KsuWSBV WNza9CoDmh+MseqOQ8rMS8NVOpQXY9m+A0U1P/lyRPXb1hVTWsMlh+NJ0TW3nAO3YL64 QjKBhX6FxhvHEJqG400ONjJuKeprV/tvi9rinKKTazgE99ZiapI+5lAV4tC9I70NF3v3 in9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=O0ICC3KknHRO+OneHA4IOY4UvKIaVL4ApCgF+vkiBdo=; b=JNXS78zejyEA66Rgr6otDopayoKB2xBESxJgl+gkwPTPNGYTdUgP4cK19hxkwwbfpT eUIUOkSIICSBE1vyyS+LO53FN78cHeTdvs0AeZCZ+OVjf6q0473N7qSjM5HBlW8lvu4g IJANJMe03CH0YefPWTp3Mu4xrw031hgMpf3KnLSQh6gGSA+RBriB8AJc/Z8dmQ2Hfi4Z X+woX64yIW6KyH6mWg6deSy4eIx3RnXOSuDXA8x8XZ7ltpzYnl1d7ynmYJG42G0Vlucl 4Tr1OUDt+YWkGWIAL6YJv6uZSuHUz9EvwAn6ypAfbSTbaV9kRIFnVXa0pHlSjddCzF6g cHZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id vu7-20020a170907a64700b0095ed582174esi12802692ejc.871.2023.05.02.02.38.36; Tue, 02 May 2023 02:38:36 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4945968C135; Tue, 2 May 2023 12:38:14 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 375A668C007 for ; Tue, 2 May 2023 12:38:06 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id F26132404EE for ; Tue, 2 May 2023 11:38:05 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id cxQrYrGqkxqd for ; Tue, 2 May 2023 11:38:05 +0200 (CEST) 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 mail0.khirnov.net (Postfix) with ESMTPS id A602B2404F5 for ; Tue, 2 May 2023 11:38:04 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 395FD3A048F for ; Tue, 2 May 2023 11:37:58 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 2 May 2023 11:37:53 +0200 Message-Id: <20230502093755.9139-2-anton@khirnov.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230502093755.9139-1-anton@khirnov.net> References: <20230502093755.9139-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/4] lavf/rawdec: stop setting codec context framerate 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: M5BLrYIG4E/h Demuxers are not supposed to do this. --- libavformat/rawdec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c index 9126a9e53b..6b623d366e 100644 --- a/libavformat/rawdec.c +++ b/libavformat/rawdec.c @@ -87,7 +87,6 @@ int ff_raw_video_read_header(AVFormatContext *s) sti->need_parsing = AVSTREAM_PARSE_FULL_RAW; st->avg_frame_rate = s1->framerate; - sti->avctx->framerate = s1->framerate; avpriv_set_pts_info(st, 64, 1, 1200000); fail: