From patchwork Tue Jul 20 01:25:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Liu X-Patchwork-Id: 28978 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a5d:965a:0:0:0:0:0 with SMTP id d26csp4901852ios; Mon, 19 Jul 2021 18:26:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaN9SppzGysBds9quVMANw2kO90UjEgsS/SRVZKjOAwBzkE3zyIYhBrExYOZJ6Ls+/brUU X-Received: by 2002:a17:906:4f05:: with SMTP id t5mr30090445eju.351.1626744383913; Mon, 19 Jul 2021 18:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626744383; cv=none; d=google.com; s=arc-20160816; b=CMXb6aNCUL7sy9qnZXScAgWDqITnk3VdkpJqUt4U8K8jRZ9rJE5lqXjaK4ydTfsOCH O531yvlZYCVXVzzxKXbvA7naylSD1Scn7azIZWGgMayZuXuFvuppF9cbOmSRqMs8hvwG lR1x94v5m9eomrXyLCBibyeiu6WnbglTMBSVYPd+KZwDWbtUGiUXomhLtRUjjeMTAKCj zIzp9+Dlmu4m0hH47K/d+CDXf8cPLhahZjcE/zCBG1hxnHIOEtp+SCFa/0YXwlXT/btY ENErZGfLqRQ0WfrZiHiS4jBe7UzsBRC/F9/VNQ60Fuqvl0T09KGDK5NYuHZS+fOAQzlh F75g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:mime-version:message-id:date :to:from:delivered-to; bh=01Dt+cderIKcilJQvje3mVAZnqBWjwBNc491a/HtXAI=; b=WitxG6X1wuTaO0+HeMG1xj5XnLLAibCAF9o8qFNTFkPlFQqyj4YyCeP/AdIsTAqEyr ByNen165lGX9SMtYanOCiglyIIAb+deBZVb8wfKsLBjx4P5YIbr0JsuT1PQXKbG/V8oV w7c7gUjGjP1ODCznsZK50Ve0dC7SARgSxiV9Z0UzVqE3I8JcNCP0KWPOWq6i6hC1iBSm r0OP3/6+X2oiQmBRHyD//hB/m2SpoTO8cu7mZuB0wdIkRt8QqwoNeLJPbMH5uu/pov8U TWbNuH0s2GYEHDMnst/lySvJ+DbEPDk0Q6VNqJHBaqpe7zSQuNV9oCy/xFfVlQ639ec5 XzpQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kuaishou.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y14si5913008edd.539.2021.07.19.18.26.23; Mon, 19 Jul 2021 18:26:23 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kuaishou.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2E51268A921; Tue, 20 Jul 2021 04:26:19 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbg511.qq.com (smtpbg511.qq.com [203.205.250.109]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0246868A304 for ; Tue, 20 Jul 2021 04:26:10 +0300 (EEST) X-QQ-mid: bizesmtp33t1626744360t41gsp55 Received: from localhost (unknown [103.107.216.231]) by esmtp6.qq.com (ESMTP) with id ; Tue, 20 Jul 2021 09:25:59 +0800 (CST) X-QQ-SSF: 01100000001000Z0Z000B00A0020000 X-QQ-FEAT: N9/HtQjBJPqCRiUXm4Q1OaFINgL0DLOSVEloSxyDOj6g8WDwsmupWPEvftD+A +F9IQydR05+PjshMh+ZPrUaziUYkcdZk96cPinKJ36oIampcOclQ5AELNEgB8G7iAy4qY6K lj61Zzr6ZZ9r3ZceRQ2tMuPh+O9mpgaN95ACuMPHlhYgyqpRGaTE3pd/fdAFOyTdswDcUUU yoNNmdopC+6CrW5Db8nGCVN6XOvepn0UXVFba5uf9obUKwm6rPMKiWyFLrJa/pRlCIlU1NU kgYYaIlMI6q9SY4inja8hy2YTnpHyaMWxhpVmeDYkAYrCCFkZ73k2nKPk= X-QQ-GoodBg: 0 X-QQ-CSender: lq@chinaffmpeg.org From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Tue, 20 Jul 2021 09:25:55 +0800 Message-Id: <20210720012555.26450-1-liuqi05@kuaishou.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign2 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH] avdevice/avfoundation: remove first_audio_pts and first_pts 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 Cc: Steven Liu Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: MGvLiQvrWtTy Because these two member of AVFContext not be used. Signed-off-by: Steven Liu --- libavdevice/avfoundation.m | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m index bad3760159..5b4dea826c 100644 --- a/libavdevice/avfoundation.m +++ b/libavdevice/avfoundation.m @@ -85,8 +85,6 @@ typedef struct int frames_captured; int audio_frames_captured; - int64_t first_pts; - int64_t first_audio_pts; pthread_mutex_t frame_lock; id avf_delegate; id avf_audio_delegate; @@ -766,8 +764,6 @@ static int avf_read_header(AVFormatContext *s) NSArray *devices_muxed = [AVCaptureDevice devicesWithMediaType:AVMediaTypeMuxed]; ctx->num_video_devices = [devices count] + [devices_muxed count]; - ctx->first_pts = av_gettime(); - ctx->first_audio_pts = av_gettime(); pthread_mutex_init(&ctx->frame_lock, NULL);