From patchwork Sat Oct 26 14:18:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhong Li X-Patchwork-Id: 15975 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 34F5E444B66 for ; Sat, 26 Oct 2019 17:49:02 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0E9C168AE5E; Sat, 26 Oct 2019 17:49:02 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-m963.mail.126.com (mail-m963.mail.126.com [123.126.96.3]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 873B968A846 for ; Sat, 26 Oct 2019 17:48:54 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=1Hbc6BJ7ZZHJ3thK1+ rk+X+Ib1B8j3bCBf09BRVdb1k=; b=SAiQZdKwb6N0zNeNQe7k1+sbNfNZ/DYdIV Pmn0gZWzVzXYadIFX/VDodsCuMB+1ZoM2wZ5kml+TL0ajLJEurZeBRGPJAx1uQgm uOZ08Un8vUhPBRv73IQ5xuyMkVN+O4ey8Uz5z7K+MVlBy6mNQekNQw4eKOKAaqCU Jpoq2nZog= Received: from localhost.localdomain (unknown [112.64.2.210]) by smtp8 (Coremail) with SMTP id NORpCgB37CO6VbRdgATqAQ--.21S3; Sat, 26 Oct 2019 22:18:35 +0800 (CST) From: zhongli_dev@126.com To: ffmpeg-devel@ffmpeg.org Date: Sat, 26 Oct 2019 22:18:32 +0800 Message-Id: <20191026141832.6465-2-zhongli_dev@126.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191026141832.6465-1-zhongli_dev@126.com> References: <20191026141832.6465-1-zhongli_dev@126.com> X-CM-TRANSID: NORpCgB37CO6VbRdgATqAQ--.21S3 X-Coremail-Antispam: 1Uf129KBjvdXoWruFWkAF4rtFWrurWxXr48Crg_yoWfZwc_ur nFq3s7Cw43JF97uF1Uur17urWkGa1rGF43urnxKw1fAFyDAFn8KF1v9rWDuFWS9FsIvry3 Cr1qqFn3KF409jkaLaAFLSUrUUUU8b8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUVMKtUUUUU== X-Originating-IP: [112.64.2.210] X-CM-SenderInfo: x2kr0wxolbvvby6rjloofrz/1tbiHRtawFpD+Vo1gQAAsS Subject: [FFmpeg-devel] [PATCH 2/2] tools/probetest: replace the deprecated API X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: Zhong Li MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Zhong Li Signed-off-by: Zhong Li --- tools/probetest.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/probetest.c b/tools/probetest.c index 2c6c1de246..75ed42d480 100644 --- a/tools/probetest.c +++ b/tools/probetest.c @@ -39,8 +39,9 @@ static void probe(AVProbeData *pd, int type, int p, int size) { int i = 0; AVInputFormat *fmt = NULL; + void *fmt_opaque = NULL; - while ((fmt = av_iformat_next(fmt))) { + while ((fmt = av_demuxer_iterate(&fmt_opaque))) { if (fmt->flags & AVFMT_NOFILE) continue; if (fmt->read_probe && @@ -66,8 +67,9 @@ static void print_times(void) { int i = 0; AVInputFormat *fmt = NULL; + void *fmt_opaque = NULL; - while ((fmt = av_iformat_next(fmt))) { + while ((fmt = av_demuxer_iterate(&fmt_opaque))) { if (fmt->flags & AVFMT_NOFILE) continue; if (time_array[i] > 1000000) {