From patchwork Tue Aug 6 01:17:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 14260 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 5B641447D56 for ; Tue, 6 Aug 2019 04:18:49 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3F863689A63; Tue, 6 Aug 2019 04:18:49 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F2A29689A24 for ; Tue, 6 Aug 2019 04:18:42 +0300 (EEST) Received: by mail-wm1-f67.google.com with SMTP id f17so74689582wme.2 for ; Mon, 05 Aug 2019 18:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nbqhTGKCx0Ex46kC8fwVphry3SZJa75rvpknnaOAYq8=; b=XgqUt+GwMGmoabuxltpAofGuOpc2xsJ+X1Is8HrLDXCVZKmp043T78csXmKRoZkKKF pxc9fO4kxo7NtGtfYRPu6ky6FCseoSBt0bq0JFwGKj+PXA2Of3yMn185vWoYlXV39Q7n SfCAEUY8Rh7v0JNNP8JOVZx5bobhvhdSy7wtcs91niyq+VcNalTgLINuSxCabjTEg2go sqJZhpDbbVtUaBwqu7JvKnM38YEWd3A+H8qpnRSgDWozLZ8VmYyMUp6sVb04BbCDyOa4 BvHdRayYZokJEbmUTZzGJ5D3xOkDyh6NXXj91UQj1Wb1AGFtLKy9/0IevyybxqBGzgVI GrIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nbqhTGKCx0Ex46kC8fwVphry3SZJa75rvpknnaOAYq8=; b=sR1D7dBH9t/1drYEQTe6KeXH/lq8TVMCDNvPAp52g7TNwZesWd1o8UtyttIEYlGW+E 3Blh2klWUkCpxIGVs/fYlJGCD22CKB+FzlW2xP8zIJlM2xVxdR23S9Ar5FtYdPzKrazD I0xSV5vDQv7i731DzjUZV3yckiI9yZLuCgX++YiyMQ1+WDPhhCcuh+R0efoBx7imNC2r BijiTVsahGtxeugZXD/xkSTndh3SiH+uIP/K20XUNw5s8cprnnQbaLpYVQ2bDb/MXeOf g8BcXnb+jEIZigmb7AuLJ9uY2OnRmX/hfja2A9368drgoDfsgZuXAm4PHioH41iLBXCF 9l1A== X-Gm-Message-State: APjAAAVMVTJU5LjSeFEC76YcHF12VE4OiOpqv16wVq9sf7cQFlGFbC+a n09bCrbYv+CJHLqx3NMTXDZ9mOdt X-Google-Smtp-Source: APXvYqwR7D7BDmldh7tTVJeE/lNA/5XY7uT/hv08AsWSMFYj+V5+nSFip3B0HMvt8G81mRotoM8PJQ== X-Received: by 2002:a1c:e409:: with SMTP id b9mr779933wmh.110.1565054322307; Mon, 05 Aug 2019 18:18:42 -0700 (PDT) Received: from localhost.localdomain (ipbcc06ceb.dynamic.kabel-deutschland.de. [188.192.108.235]) by smtp.gmail.com with ESMTPSA id b8sm115978485wmh.46.2019.08.05.18.18.41 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 18:18:41 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Tue, 6 Aug 2019 03:17:06 +0200 Message-Id: <20190806011706.21018-2-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190806011706.21018-1-andreas.rheinhardt@gmail.com> References: <20190806011706.21018-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] fftools/ffprobe: Remove unneeded casts 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Andreas Rheinhardt --- fftools/ffprobe.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 2380417229..9d55810cf9 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -3507,13 +3507,13 @@ static const OptionDef real_options[] = { "use sexagesimal format HOURS:MM:SS.MICROSECONDS for time units" }, { "pretty", 0, {.func_arg = opt_pretty}, "prettify the format of displayed values, make it more human readable" }, - { "print_format", OPT_STRING | HAS_ARG, {(void*)&print_format}, + { "print_format", OPT_STRING | HAS_ARG, { &print_format }, "set the output printing format (available formats are: default, compact, csv, flat, ini, json, xml)", "format" }, - { "of", OPT_STRING | HAS_ARG, {(void*)&print_format}, "alias for -print_format", "format" }, - { "select_streams", OPT_STRING | HAS_ARG, {(void*)&stream_specifier}, "select the specified streams", "stream_specifier" }, + { "of", OPT_STRING | HAS_ARG, { &print_format }, "alias for -print_format", "format" }, + { "select_streams", OPT_STRING | HAS_ARG, { &stream_specifier }, "select the specified streams", "stream_specifier" }, { "sections", OPT_EXIT, {.func_arg = opt_sections}, "print sections structure and section information, and exit" }, - { "show_data", OPT_BOOL, {(void*)&do_show_data}, "show packets data" }, - { "show_data_hash", OPT_STRING | HAS_ARG, {(void*)&show_data_hash}, "show packets data hash" }, + { "show_data", OPT_BOOL, { &do_show_data }, "show packets data" }, + { "show_data_hash", OPT_STRING | HAS_ARG, { &show_data_hash }, "show packets data hash" }, { "show_error", 0, { .func_arg = &opt_show_error }, "show probing error" }, { "show_format", 0, { .func_arg = &opt_show_format }, "show format/container info" }, { "show_frames", 0, { .func_arg = &opt_show_frames }, "show frames info" }, @@ -3522,20 +3522,20 @@ static const OptionDef real_options[] = { { "show_entries", HAS_ARG, {.func_arg = opt_show_entries}, "show a set of specified entries", "entry_list" }, #if HAVE_THREADS - { "show_log", OPT_INT|HAS_ARG, {(void*)&do_show_log}, "show log" }, + { "show_log", OPT_INT|HAS_ARG, { &do_show_log }, "show log" }, #endif { "show_packets", 0, { .func_arg = &opt_show_packets }, "show packets info" }, { "show_programs", 0, { .func_arg = &opt_show_programs }, "show programs info" }, { "show_streams", 0, { .func_arg = &opt_show_streams }, "show streams info" }, { "show_chapters", 0, { .func_arg = &opt_show_chapters }, "show chapters info" }, - { "count_frames", OPT_BOOL, {(void*)&do_count_frames}, "count the number of frames per stream" }, - { "count_packets", OPT_BOOL, {(void*)&do_count_packets}, "count the number of packets per stream" }, + { "count_frames", OPT_BOOL, { &do_count_frames }, "count the number of frames per stream" }, + { "count_packets", OPT_BOOL, { &do_count_packets }, "count the number of packets per stream" }, { "show_program_version", 0, { .func_arg = &opt_show_program_version }, "show ffprobe version" }, { "show_library_versions", 0, { .func_arg = &opt_show_library_versions }, "show library versions" }, { "show_versions", 0, { .func_arg = &opt_show_versions }, "show program and library versions" }, { "show_pixel_formats", 0, { .func_arg = &opt_show_pixel_formats }, "show pixel format descriptions" }, - { "show_private_data", OPT_BOOL, {(void*)&show_private_data}, "show private data" }, - { "private", OPT_BOOL, {(void*)&show_private_data}, "same as show_private_data" }, + { "show_private_data", OPT_BOOL, { &show_private_data }, "show private data" }, + { "private", OPT_BOOL, { &show_private_data }, "same as show_private_data" }, { "bitexact", OPT_BOOL, {&do_bitexact}, "force bitexact output" }, { "read_intervals", HAS_ARG, {.func_arg = opt_read_intervals}, "set read intervals", "read_intervals" }, { "default", HAS_ARG | OPT_AUDIO | OPT_VIDEO | OPT_EXPERT, {.func_arg = opt_default}, "generic catch all option", "" },