From patchwork Sun Apr 9 13:27:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 41038 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4645:b0:e3:3194:9d20 with SMTP id eb5csp1571900pzb; Sun, 9 Apr 2023 06:29:12 -0700 (PDT) X-Google-Smtp-Source: AKy350ZnEv3uXU3OyD73p3oR2cbUZ1dZrwKaRAZADIi5lLH9sO2DCPd24MEMd+sshcKdHjQs/qi6 X-Received: by 2002:a17:906:842:b0:935:3028:ff58 with SMTP id f2-20020a170906084200b009353028ff58mr4683192ejd.55.1681046952613; Sun, 09 Apr 2023 06:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681046952; cv=none; d=google.com; s=arc-20160816; b=Jwh9nUFX0jub9/xz3/OFi7XEQa/K4SYRx/80/BfYM6yXQufvNZlsZL351d2cB3OovL UDhUdIkke+UByLO4TZ6KLH0uX8XcUWQMB5Tj6M7RatLSPNmDjNKk291XnFx+OwcPdyiE 3XKDP+Qa6nLsoaWRl54yKK6gxa5bJmuj0oRh4BHSWuGSaF7bNo6K47v6Y73InDVhMOfo UoLNFFmLEo5ajFEXTxn/A0T9f6JkH6XehXX8YldYsyrISOdTYXibSzp+vkiGvJUGO7+T bf5z7qL1r9F4Xf/R7vHlg6WBXU2ZFlEOVbY2p4+sxwYWHVNFpGpSQxRtvdaBLHk1/ZsF +0IQ== 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=msudtLbEsMtDu9w3vjutF81vpfdkkgSmY6qv8UZRtKI=; b=J7KKveXrd/R+oNK5QXZrScY5EJDHKBV61esLz9yR68OzRp7zW1sboqIEvtWf6j0p4Q 4SVhXT12qADDs2yi4otOKu4+1awdDC8jyGfcPy049SH04fz1yxvc+KkFQIaO9LkLFS4i 6d2yT6QtopwPuf3lqR7EnQuwBLq/t7/s+KQ77Nfn1pBdN8dogDhFADJ0VhS3iEPIMFN9 TyR7SzAH7k8M/U/LaOsgm4MuXVcY1SbpFSM0W+eGJ61KN4t4CkrQivlxs1a5s4r9jzkA MgHfJG5lfhEnnH5tztrHMWDZwa7H+sOTNewuZrlh7wggErjHpUDnAQ2tJWCtFO9Esddo navA== 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 bf22-20020a0564021a5600b00501da4e8642si7236915edb.165.2023.04.09.06.29.12; Sun, 09 Apr 2023 06:29:12 -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 0EBE168BB53; Sun, 9 Apr 2023 16:28:53 +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 A822868A279 for ; Sun, 9 Apr 2023 16:28:44 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 6F90A2404EC for ; Sun, 9 Apr 2023 15:28:44 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id zFDd79ceDi9c for ; Sun, 9 Apr 2023 15:28:43 +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 74D0F2404F5 for ; Sun, 9 Apr 2023 15:28:43 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 1713F3A03E5 for ; Sun, 9 Apr 2023 15:28:37 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Sun, 9 Apr 2023 15:27:42 +0200 Message-Id: <20230409132746.19756-3-anton@khirnov.net> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230409132746.19756-1-anton@khirnov.net> References: <20230409132746.19756-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/7] lavf/rawdec: mark raw demuxers as having no timestamps 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: PLrRh6GA/Rk2 Changes the result of the h264_redundant_pps-mov test, where the output timebase is now 1001/24000 instead of 1/24. This is more correct, as the source file actually is 23.98fps. --- libavformat/rawdec.h | 2 +- tests/ref/fate/h264_redundant_pps-mov | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/rawdec.h b/libavformat/rawdec.h index f843fe5a2e0..91d0b659afd 100644 --- a/libavformat/rawdec.h +++ b/libavformat/rawdec.h @@ -57,7 +57,7 @@ const AVInputFormat ff_ ## shortname ## _demuxer = {\ .read_header = ff_raw_video_read_header,\ .read_packet = ff_raw_read_partial_packet,\ .extensions = ext,\ - .flags = flag,\ + .flags = flag | AVFMT_NOTIMESTAMPS,\ .raw_codec_id = id,\ .priv_data_size = sizeof(FFRawVideoDemuxerContext),\ .priv_class = &ff_rawvideo_demuxer_class,\ diff --git a/tests/ref/fate/h264_redundant_pps-mov b/tests/ref/fate/h264_redundant_pps-mov index 7cab0e0b29b..a8a1fae933b 100644 --- a/tests/ref/fate/h264_redundant_pps-mov +++ b/tests/ref/fate/h264_redundant_pps-mov @@ -1,6 +1,6 @@ ac2e8f528dae4e4d610fa3517d2c94fb *tests/data/fate/h264_redundant_pps-mov.h264 187284 tests/data/fate/h264_redundant_pps-mov.h264 -#tb 0: 1/24 +#tb 0: 1001/24000 #media_type 0: video #codec_id 0: rawvideo #dimensions 0: 640x360