Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8053621ybi; Thu, 6 Jun 2019 06:03:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7ZJTpv7j5TOIsOY9zSeNqmP+O0wYi0ElnOiZKHalPTd6G5ZdUSbkDJ2rUEF0+NEQCLP9g X-Received: by 2002:a63:2b8a:: with SMTP id r132mr3250977pgr.196.1559826208926; Thu, 06 Jun 2019 06:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559826208; cv=none; d=google.com; s=arc-20160816; b=fOCkKAwhrE/evtcMi1gdxrnhb0D/3M/llHw5Ti9S5RWHOGfSlOXsHiL2Tu62oazkLX xyykinFWKphmbWU1d2++EsYSh0zweiEXFiw7wVVET6JXvR49ZMCR5kKfjpy/xl2gc6l3 KIZg8hskoVXXdTUsrRC/sD7Obwy9bJGNHOujHJgzs0sF/iw7ipiv3yjICLOfwYZfhYMJ 0+auAuXxg1NJYG/leEKmubD52TEM54/KIHmqENkiu+BrwaEs4u6czdr5hHoq/f87smYe OI7FL3qx8rg89GAfT0n5HccEU2jrJ1iNx+KJty5MC/wwjHBjZ/NxHrAmE4hjhB6Sf39w dhTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=suyPrwakIpx4/GT/1pO6R0rUGM7UxiWyf4SfHp3I1Gg=; b=uGjyRq8y6PWX9LG9SkA7zjQLUK+Wk/8gpP2MytaTE0uc2wikY2jHWVxXJlt/7qb6FS mFFwIPW6vCAjtipcpXQvDGeuz4QUbH52X2uLZm06rBrQQ0VxRZ6csSFsLWW8u+dwUN51 2EsWd9mPSUQnHWzeTowWm54i3lQHNtUK7QjIEhQAm3HHCkS2yTLI0Yf7w1hdF2Q7SsNj mH5A1xSHp4NyiCCYtH620IYCdoJKd7n8F9qGIxqgdFwOxo5eR6Mn4OlKoK5OasxAeBZe TK/i2ExjLh98StzQEOkOfPI+u9g/nEVZ/zy6xhfclcyGxfwkJ9T/LqrFTuD3WVoPyOqc AaiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=z1VhShHb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t22si2087316pgg.292.2019.06.06.06.03.08; Thu, 06 Jun 2019 06:03:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=z1VhShHb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727564AbfFFMqV (ORCPT + 99 others); Thu, 6 Jun 2019 08:46:21 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:45842 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbfFFMqU (ORCPT ); Thu, 6 Jun 2019 08:46:20 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x56ChqtW003123; Thu, 6 Jun 2019 12:45:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=corp-2018-07-02; bh=suyPrwakIpx4/GT/1pO6R0rUGM7UxiWyf4SfHp3I1Gg=; b=z1VhShHb2i7HnW0uk6ZwccsbeHFgBJW4/hx22fhDyqH28AJ8xAcapEeLDVpLjk9rbrMW UisNBRZh0n+QqG1pVdBjtjrz1Mxr/rvvYdsTOEuevBWAk0FoGOSTj6HF8fIVUzRI051K mb7wXoROtxyO9AHeQFBky8CcvcAMh+oGHExVMojIgLxKzhneo1dr/j9xe6XwHQmJTEMH JLOi6Jjyc56J3HJTAEdiryvLWQKNNw3awF7CGTCPufdE975bApnwDw7SP5clqDMbGYWo XO/xt7wN8y+m8aZWAhjmwx7VCtLdFqxZKgJw8lNUag1KkZxTNMpW3JuUh5HLiPVb6e9R jw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 2sugstr6hv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Jun 2019 12:45:50 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x56ChtjB099122; Thu, 6 Jun 2019 12:45:50 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 2swngje01v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Jun 2019 12:45:49 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x56Cjho5021500; Thu, 6 Jun 2019 12:45:43 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 06 Jun 2019 05:45:42 -0700 Date: Thu, 6 Jun 2019 15:45:33 +0300 From: Dan Carpenter To: Jernej =?utf-8?Q?=C5=A0krabec?= Cc: Maxime Ripard , devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, mchehab@kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Subject: Re: [PATCH 3/7] media: cedrus: Fix decoding for some H264 videos Message-ID: <20190606124533.GN31203@kadam> References: <20190530211516.1891-1-jernej.skrabec@siol.net> <20190530211516.1891-4-jernej.skrabec@siol.net> <20190603115536.j5lan6wtmbxpoe2k@flea> <2536664.ljALn0aKaT@jernej-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2536664.ljALn0aKaT@jernej-laptop> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9279 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=769 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906060091 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9279 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=802 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906060091 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 03, 2019 at 05:37:17PM +0200, Jernej Škrabec wrote: > Dne ponedeljek, 03. junij 2019 ob 13:55:36 CEST je Maxime Ripard napisal(a): > > int current = 0; > > > > while (current < num) { > > int tmp = min(num - current, 32); > > > > cedrus_write(dev, VE_H264_TRIGGER_TYPE, 0x3 | (current << 8)) ^^^^^^^ This should be "tmp << 8" instead of "current << 8" though. > > while (...) > > ... > > > > current += tmp; > > } > regards, dan carpenter