From patchwork Sat Sep 22 16:14:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 10441 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:1286:0:0:0:0:0 with SMTP id 6-v6csp718000jap; Sat, 22 Sep 2018 09:15:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV60JbGVMigGfESuwlo7f5iwKMEozzQjb/p5w5FhcPAjWXiRiULs7HCLuqGoWnIrAJfn6Pps0 X-Received: by 2002:adf:a212:: with SMTP id p18-v6mr2284787wra.47.1537632938383; Sat, 22 Sep 2018 09:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537632938; cv=none; d=google.com; s=arc-20160816; b=NI687LF8RsB/JvqDUVJo9P8lmUTA0mCc4ge4xjofFW/xIBiQbHLiwAF8Tsih9ZxQ+V go3d965x5s/QtQxVwJKOfToWmEwV3SBsR7PK+HQKxtpKo2SIkLB2Zz29WMzcSy73rNic cEhjZq9RfNEwJtva1RcMLVRllZ50j7eY+Z38xvowvfrJdM7DHuM5GvqLif1c02N21wcm 1MSJQU4WsBxk3DcrvDk8ilMPPxcjKl6qrGpIJ+p52IwPK6uCR9FS9Coygt9gnCyl8caX GcHUREyWbNWltcOjR9IQmH3vOHhJDP+joivkVJtbgEGMsZiPdMTWVMrtT4noNaYbg3RC z9Uw== 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=v0VJIq8djq/zS2ivHR2N/jAcZIM63Qtj58EeaTkqP4E=; b=dvoiT8WCglzTi0HJye4UXSYS5u6XTDDGNHNF8DCSc1+IC13xmxdH9OCUHuWkoGTFrf Q053ygAyVhria4vyN1Rq8Ey6hMVanmliNwlfldMcFlYA0kqLGjkOVLt4payVd2p/sVxV 3rozk5zVri51WbnWj9FlmwUihAh48ue/MmiRxVjRdFLO0VCsxyJcFEONqxJW5ogG9qr4 ptP0R6xbTfu6DZ54net/aQgtzSR6zQCHMf4JrgHJJhHZBBfBLx4JpPPrYksjDy6EEkdz pzdv0sEbK6oXR0YT/isMcHyHI0XFe6bi+XSYedSa+ynn1oWjjtFcaPZbKZL16aGb4t5k eH2Q== 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 h5-v6si5292779wre.357.2018.09.22.09.15.38; Sat, 22 Sep 2018 09:15:38 -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 5453368A594; Sat, 22 Sep 2018 19:14:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-qmta-pe01-3.mx.upcmail.net (vie01a-qmta-pe01-3.mx.upcmail.net [62.179.121.180]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4CCC268A4FF for ; Sat, 22 Sep 2018 19:14:53 +0300 (EEST) Received: from [172.31.218.53] (helo=vie01a-dmta-pe08-2.mx.upcmail.net) by vie01a-pqmta-pe01.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1g3kYm-0006xh-Mc for ffmpeg-devel@ffmpeg.org; Sat, 22 Sep 2018 18:15:08 +0200 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe08.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1g3kYh-0001Cz-EO for ffmpeg-devel@ffmpeg.org; Sat, 22 Sep 2018 18:15:03 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id egEz1y00Q0S5wYM01gF0g4; Sat, 22 Sep 2018 18:15:00 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sat, 22 Sep 2018 18:14:01 +0200 Message-Id: <20180922161408.22052-5-michael@niedermayer.cc> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180922161408.22052-1-michael@niedermayer.cc> References: <20180922161408.22052-1-michael@niedermayer.cc> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 05/11] avcodec/prosumer: factorize e0 setting out 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" Signed-off-by: Michael Niedermayer --- libavcodec/prosumer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/prosumer.c b/libavcodec/prosumer.c index 399350031a..9e8a94d4db 100644 --- a/libavcodec/prosumer.c +++ b/libavcodec/prosumer.c @@ -290,14 +290,13 @@ static void fill_elements(uint32_t idx, uint32_t shift, int size, uint32_t *e0, if (table[2 * i] >> 8 == 0x80u) { return; } else { + *e0 = (*e0 & 0xFFFFFFu) | (((12 + b - shift) | (0x40u<