From patchwork Mon Nov 15 15:23:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 31430 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:d206:0:0:0:0:0 with SMTP id q6csp5990695iob; Mon, 15 Nov 2021 07:24:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4zA0aik5iR98GG10o95bpZH2Ua8G4PrQOU3CoZNa3ePqhND8AyDA1mLEitdlA0giDH3Nb X-Received: by 2002:a17:907:96a6:: with SMTP id hd38mr48902780ejc.47.1636989873385; Mon, 15 Nov 2021 07:24:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636989873; cv=none; d=google.com; s=arc-20160816; b=D63z0l1U/QvQgaDWoiaYUUZvGIBqUXwCy3ppNs9qtHEIDmUh8E7bBvQhb3Fk6NqQSz vloxr5Z4mbOtR9FBRREh2m4wy8lR0KfQs8xCmoYwXoQpx8b/EQW+6MVH1uTqI2ahlyLD rr22r0jFN7qMMzxxGBJzPjm55z6YyAmand/7BzpcxUpSe4qlHBjHKXLJTS2FiIm6sx8t ArWxHsjIzsumUXFvZNIRKrpC9mgUz5WSsspFlrC7Wcxd4awPYH80wizP9OhpGWdIMQ3/ O+9tY/HTMg7WRqmZK5fRgm08oBogL731kSNa1fAv4QW7ELvhkPISA5fG7tExpJhQZil1 mZ5w== 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=ukeqH9Y0cknwHa0k/fN9Aw68kodRNsmCHKDwTQdW1+c=; b=uoaOCB16zmfMpfFTAOZ9403udrQLajfTSAokd3QM2smvE5/icpyPbQZwlG/owdLd0L P2jpkdaInEtE1wFnSkD5tXnF3DQzhujwMqvHSiCpyd9P123Wq9v9k8kLK4yJ3Ogl5IZn rEuJoaoBM8zPeYCSzT0l+gvtx5CDqjU6jM8N7kJme9GmwkRFeMlkGsh0Sawntk4QEhMM ShyJuAPTJ7/fGOPSlnn6Ha0sKs/jXp3XmzyEXAGaHi7H3W9c+oCzPdnt9/sywOEYJvcN QFXTgQfHn0pE7Wz06MoS8yXDEeUJmf16/h06TFf23Cwki5pS8BbSi4f0a61Orv3zT8Jp Z97w== 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 g9si27072741ejb.124.2021.11.15.07.24.33; Mon, 15 Nov 2021 07:24:33 -0800 (PST) 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 2320768AE3F; Mon, 15 Nov 2021 17:24:17 +0200 (EET) 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 EF86268A716 for ; Mon, 15 Nov 2021 17:24:09 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 8A43F2400D3 for ; Mon, 15 Nov 2021 16:24:09 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 3jPKQzYlmZAS for ; Mon, 15 Nov 2021 16:24:07 +0100 (CET) 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 7B2BB240174 for ; Mon, 15 Nov 2021 16:24:07 +0100 (CET) Received: by libav.khirnov.net (Postfix, from userid 1000) id 6810F3A067C; Mon, 15 Nov 2021 16:24:07 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Mon, 15 Nov 2021 16:23:53 +0100 Message-Id: <20211115152400.5522-2-anton@khirnov.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211115152400.5522-1-anton@khirnov.net> References: <20211115152400.5522-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/9] ffmpeg: drop the -intra option 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: 6ytCv1aZPCHF It is undocumented and has been marked as deprecated since 2012. --- fftools/ffmpeg_opt.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 4685cf6435..8cf932bc6c 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -176,7 +176,6 @@ int auto_conversion_filters = 1; int64_t stats_period = 500000; -static int intra_only = 0; static int file_overwrite = 0; static int no_file_overwrite = 0; static int do_psnr = 0; @@ -1813,8 +1812,6 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in } st->sample_aspect_ratio = video_enc->sample_aspect_ratio; - if (intra_only) - video_enc->gop_size = 0; MATCH_PER_STREAM_OPT(intra_matrices, str, intra_matrix, oc, st); if (intra_matrix) { if (!(video_enc->intra_matrix = av_mallocz(sizeof(*video_enc->intra_matrix) * 64))) { @@ -3763,8 +3760,6 @@ const OptionDef options[] = { "set pixel format", "format" }, { "bits_per_raw_sample", OPT_VIDEO | OPT_INT | HAS_ARG, { &frame_bits_per_raw_sample }, "set the number of bits per raw sample", "number" }, - { "intra", OPT_VIDEO | OPT_BOOL | OPT_EXPERT, { &intra_only }, - "deprecated use -g 1" }, { "vn", OPT_VIDEO | OPT_BOOL | OPT_OFFSET | OPT_INPUT | OPT_OUTPUT,{ .off = OFFSET(video_disable) }, "disable video" }, { "rc_override", OPT_VIDEO | HAS_ARG | OPT_EXPERT | OPT_STRING | OPT_SPEC |