From patchwork Tue Jun 27 19:47:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 4140 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.1.76 with SMTP id 73csp2418939vsb; Tue, 27 Jun 2017 12:48:29 -0700 (PDT) X-Received: by 10.223.160.40 with SMTP id k37mr16543188wrk.91.1498592909534; Tue, 27 Jun 2017 12:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498592909; cv=none; d=google.com; s=arc-20160816; b=XNYH5i5sKAMoSxDpDzNWBwQi6VBAi/pgxuJY+4QedDECWeQCqpw7XS6CzGvcp0LT8H ntxarukrmMubqj4bk5rStrQJbXn/VivIyKpFAiPfWiPkGc2V0x5xQpTNMUDWyZ7bvlMr /RUdMzEnh2cAr6tqWpNk6FPalVPhrjlsgL4/77GMdU7ubkAh/P2DTL7cdxjXgB/ADaBL uiWB1i6Iv5VJsFg2p00VmaIXr30ciBhSIk3wZST8k9YRikkqRd096RzcxtAGG1mCt5Eb PDkmzpXGQvdKEQGMv+90vXKjryjR/o1LafOQBCUZbrgL/KDfPA6NkC/caYwyFXAIIGWs Gc2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=ecs4YGAtXcsZgALR8Ilnlg3lFMPJC9W7TeQ+YR505go=; b=VDk3TpDJId/4o5UJ0Gi45KhBct7V1fAgnubmCwlpAtqNyziIWecjWQtrBRCLlppZZ6 MYCMYvjVuY+mDjRtP4KbubDmslldY72Qcuz8qRHateJeqb095V9C9vt1EDWlfDHB9GiO PIm1PvelVfSPgFU/7pyfBER0pBuKQXQAbBlGx/BR73GW6dU9pHdsPJpVLsAdLUQrLQgl sBQfzI/yqkoyM+W6/GcP5JHSoLs/KvApjHhtHnCHNCUEl81oH+BAqtBZCGCrYuuKN+nY wUQGoBAWiSTBtkBvhz+Lv1OtrXshM9pQTwskNzvWWQj5vfCQq3m9kOG26VusZbvP3HT8 dmgQ== 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 z142si3323764wmc.38.2017.06.27.12.48.29; Tue, 27 Jun 2017 12:48:29 -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 452DF68A4C9; Tue, 27 Jun 2017 22:47:57 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe04-3.mx.upcmail.net (vie01a-dmta-pe04-3.mx.upcmail.net [62.179.121.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 82BD268A4CA for ; Tue, 27 Jun 2017 22:47:50 +0300 (EEST) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe04.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1dPwSl-00066L-Rl for ffmpeg-devel@ffmpeg.org; Tue, 27 Jun 2017 21:47:51 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id dvnj1v0140S5wYM01vnk6z; Tue, 27 Jun 2017 21:47:44 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Tue, 27 Jun 2017 21:47:33 +0200 Message-Id: <20170627194735.27533-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170627194735.27533-1-michael@niedermayer.cc> References: <20170627194735.27533-1-michael@niedermayer.cc> Subject: [FFmpeg-devel] [PATCH 3/5] avcodec/utvideodec: enable unchecked bitreader 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" inner reader loop becomes 16% faster Signed-off-by: Michael Niedermayer --- libavcodec/utvideodec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c index 411df47730..1418cde543 100644 --- a/libavcodec/utvideodec.c +++ b/libavcodec/utvideodec.c @@ -27,6 +27,8 @@ #include #include +#define UNCHECKED_BITSTREAM_READER 1 + #include "libavutil/intreadwrite.h" #include "avcodec.h" #include "bswapdsp.h"