From patchwork Wed Feb 22 13:49:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul B Mahol X-Patchwork-Id: 2638 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.65.149 with SMTP id x21csp895621vsf; Wed, 22 Feb 2017 05:57:49 -0800 (PST) X-Received: by 10.28.4.10 with SMTP id 10mr2661076wme.142.1487771869755; Wed, 22 Feb 2017 05:57:49 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id k69si1855705wrc.76.2017.02.22.05.57.49; Wed, 22 Feb 2017 05:57:49 -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; dkim=neutral (body hash did not verify) header.i=@gmail.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4AD78688372; Wed, 22 Feb 2017 15:57:39 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 59EE968834B for ; Wed, 22 Feb 2017 15:57:32 +0200 (EET) Received: by mail-wr0-f196.google.com with SMTP id 89so469970wrr.1 for ; Wed, 22 Feb 2017 05:57:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=EnzseSdKiwcvVunDcFncNsjzRjYJqe9TrNoOnj0NSNc=; b=YEY4JxmyfvXRYmpe2e1WeTMBZ/b3h9j5zaYWEv5jGLZWz4/Q4uLTtok6bFvQ4WS9zl oIpZcJf7fU5ZSSNncGs+dU8pk/scJx+PHVMKaDvtycMHhzE9gskbgMhmqe5Wm6aTdhnX bYSn8qPKIN4UnibwrsT014piUG5OCtZ3j1uaQpN4IVp9i9X90aTUAytKLbu4tDu3QkfG iv5EKjXz/O4SI9CKrc+dcwFCp30EgTBwL4wjFuUTRj+nixFUuZ+MGTohngHyqalmYHdI OmaFoj8WGRK8SLjJhDcaa07WXLK9qT6J5UvEYhuZ+c0awee8HsEen/cIMPh1cnrAmq4/ lMXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=EnzseSdKiwcvVunDcFncNsjzRjYJqe9TrNoOnj0NSNc=; b=jlMhywKM2cTUEzwY+PHEuSrJ4VavPawaAPSl5GWDx1IkBQu/d5nTeASK+JGi5/rx12 mM/TWni6+3wYwJbVxm6TgK+S6cNusDy0jRLit1rir7kdI5cmSM/+Rlmo3bqGcM63THg3 Cey/zrt3dJMb6NH3DTT2FpNxw2H/bqDohH1ZxgAvts2NGqhqyXzt66/KUoyxRdburSEx Db5Y1akgeho+NelhSrJRoUOQK04rjRFQdaY1QacXynsk4YydxtM/uFoH/s46u0t+F7sF 8y9sbm/Yq93fiQztzRe9IVq2kYaL3TgGR1URftGeqy5EmB9YRBeN1xy9o3Mvq4yjJ9EL M60A== X-Gm-Message-State: AMke39lQYck1N93uftCl+5DWrlAOajbkZpvQis/UuT6zeqU5XpQ078XVlJ5btzg2xXrvpA== X-Received: by 10.223.133.164 with SMTP id 33mr25681226wrt.39.1487771414245; Wed, 22 Feb 2017 05:50:14 -0800 (PST) Received: from localhost.localdomain ([94.250.174.60]) by smtp.gmail.com with ESMTPSA id r195sm2631111wme.25.2017.02.22.05.50.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Feb 2017 05:50:13 -0800 (PST) From: Paul B Mahol To: ffmpeg-devel@ffmpeg.org Date: Wed, 22 Feb 2017 14:49:59 +0100 Message-Id: <20170222134959.32498-1-onemda@gmail.com> X-Mailer: git-send-email 2.9.3 Subject: [FFmpeg-devel] [PATCH] avcodec/dnxhddec: fix decoding of DNxHR HQX 10-bit 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" Signed-off-by: Paul B Mahol --- libavcodec/dnxhddec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c index 70ce264..cdbc0bc 100644 --- a/libavcodec/dnxhddec.c +++ b/libavcodec/dnxhddec.c @@ -435,7 +435,7 @@ static int dnxhd_decode_dct_block_8(const DNXHDContext *ctx, static int dnxhd_decode_dct_block_10(const DNXHDContext *ctx, RowContext *row, int n) { - return dnxhd_decode_dct_block(ctx, row, n, 6, 8, 4, 0); + return dnxhd_decode_dct_block(ctx, row, n, 6, 32, 6, 0); } static int dnxhd_decode_dct_block_10_444(const DNXHDContext *ctx,