From patchwork Fri Mar 13 10:28:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 18174 Delivered-To: andriy.gelman@gmail.com Received: by 2002:a0c:9128:0:0:0:0:0 with SMTP id q37csp686244qvq; Fri, 13 Mar 2020 03:33:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsUUpnxrMlDz6covzZiYiCShW0HZB0EyryACJX8xPRyUV9ltWZX6XZL/V92OizQ3lwnr9+s X-Received: by 2002:a17:906:bfcb:: with SMTP id us11mr11193833ejb.185.1584095595556; Fri, 13 Mar 2020 03:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584095595; cv=none; d=google.com; s=arc-20160816; b=pYOdCjQPt1d0lxkNNazrRpOa4OJZp4V/Dm/VUsZoBYZveskozs3qk2vEygjONdLZMk dbiDdCCU5dvkck3XN2FGQv+1Sp6uzvUek+OdzeMZUi/4KJGlRKoPlWlEN0gDJr6yrXBD xru72W7noaSvDyb70WrZr2/KQZcJp1+LQxqkFspLyz59naiGNneSxeRhSBqZfIExCvuc +0Lwq/9dtjnQziOhqEZ2iIRbdJAgfbXut/s6IZdw1biGrMPO8n058vejTkWuQ9Nh5SH7 AUsWW2autqM4LRmB8Qwml7B7CwsM+m/QXAbL1XYbvzlumQBbJHDciahraf2E1G1KFRzQ Bx3Q== 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=p3ZLc8OIMCXBQspLBsol5iLD054XjKP5ANmCItJ9WH0=; b=pb2mvQyr/QZqGppSLbxOIAJjJr1Og+2Y51+uH0gh1oGTW9sQzbx0ry8QjGv2ljPfG+ jNVtqH7BFeYDTwqedBQM33ofju5wnk6LNS2BB5ndzkizCwK5h/14zYfKIdGbeOakkfQG Jaat1J91yz9PzLfADGxzBE1/qdWmlPg21F/Pf0WiDSxW5K4Sszm1NxZEBgCayCwCgsTa iBW7GRnfnQaXb5NkjyFGQVu1l/WxMrpb0lFdBZ1iKK4F5pn9sIhrbELjWp9564GX2FR9 AyfE6Y07euz2+MjVOWEGMQ4jdILiwRI7Bf+yj3cVDbYMTE8etXOtI6oaNvj/CzPKVDDA 9HfQ== 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 d9si4773258ejb.5.2020.03.13.03.33.03; Fri, 13 Mar 2020 03:33:15 -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 C792A68B1DE; Fri, 13 Mar 2020 12:30:30 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail.red.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C257E68B104 for ; Fri, 13 Mar 2020 12:30:15 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail.red.khirnov.net (Postfix) with ESMTP id 7EAB7295799 for ; Fri, 13 Mar 2020 11:30:15 +0100 (CET) Received: from mail.red.khirnov.net ([IPv6:::1]) by localhost (mail.red.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id jWAMEJPByj0Y for ; Fri, 13 Mar 2020 11:30:14 +0100 (CET) Received: from quelana.khirnov.net (unknown [IPv6:2a00:c500:61:23b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) client-signature RSA-PSS (2048 bits)) (Client CN "quelana.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail.red.khirnov.net (Postfix) with ESMTPS id C8C6D295798 for ; Fri, 13 Mar 2020 11:30:13 +0100 (CET) Received: from localhost (quelana.khirnov.net [IPv6:::1]) by quelana.khirnov.net (Postfix) with ESMTP id 64D9F25345 for ; Fri, 13 Mar 2020 11:30:13 +0100 (CET) Received: from quelana.khirnov.net ([IPv6:::1]) by localhost (quelana.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id rLxDwO1VFC0e for ; Fri, 13 Mar 2020 11:30:12 +0100 (CET) Received: from libav.daenerys.khirnov.net (libav.daenerys.khirnov.net [IPv6:2a00:c500:561:201::7]) by quelana.khirnov.net (Postfix) with ESMTP id 2BE2625353 for ; Fri, 13 Mar 2020 11:30:00 +0100 (CET) Received: by libav.daenerys.khirnov.net (Postfix, from userid 1000) id 2E68920E0365; Fri, 13 Mar 2020 11:29:56 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Fri, 13 Mar 2020 11:28:49 +0100 Message-Id: <20200313102850.23913-17-anton@khirnov.net> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200313102850.23913-1-anton@khirnov.net> References: <20200313102850.23913-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 17/18] h264dec: do not set picture_structure on init 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: gSG5x3YURw5p Content-Length: 1309 This has been cargo culted from mpegvideo and serves no useful purpose. It will be initialize correctly in h264_field_start() --- libavcodec/h264dec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 04b1f74cc2..6838b13eac 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -310,7 +310,6 @@ static int h264_init_context(AVCodecContext *avctx, H264Context *h) h->width_from_caller = avctx->width; h->height_from_caller = avctx->height; - h->picture_structure = PICT_FRAME; h->workaround_bugs = avctx->workaround_bugs; h->flags = avctx->flags; h->poc.prev_poc_msb = 1 << 16;