From patchwork Mon Jun 19 22:37:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 4051 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.22.4 with SMTP id 4csp1121797vsw; Mon, 19 Jun 2017 15:38:04 -0700 (PDT) X-Received: by 10.223.149.99 with SMTP id 90mr11809342wrs.46.1497911884395; Mon, 19 Jun 2017 15:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497911884; cv=none; d=google.com; s=arc-20160816; b=sSQeqaSxTNG3G79+NEjqSNEOUcgOMJp0ArKBNZvSTEEOZFp7ALrO/iGALulq59Iw95 Zio52ZObk41dzDZZnbwhJWcBoiBTS+IG1Gizjr4zxhZnGnXxmABa5rm0DWDMDJo8EYkv Gi6y17TtI5x9i3su41IbHqtSiMjik3Lbq2aGSde1CG1EqdW1u4y5IgJZtBYoZGpc3pZi BJvK2x3v4L7f5R6zdTtFS3QUEUoTR8fhQ8zaACH+I1d8E/VsY+S3uIYg4ZHUYSVknj73 5pTOFh3Q485q4kWUIQOI0ldhpnPR/2iHuFenXsPQsppXGRMESefqiYsO4iieBzG/GIcC f2SQ== 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:message-id:date:to:from:delivered-to :arc-authentication-results; bh=2iFk12opJXgfLORoSO+2b0UWnqGlYKCYK3tfTudAs2M=; b=y2VIHGnjwGlDz2EXID20TmCGAZ8Aw1QzrZ1cy8BCh4m9VkKXKulASbQ2C/9cIhUtXp Xr3mgNm1iTmwSCwJdGGF+qfd3JFNCCDz6myur06QgI10wU1x09yveGNj146xTf/fqmSx aQztTaux09dfoakVMuQHN3VxInqqRyVmu6HGKGAgwS4mULDij2l79s/PI+TbFIThq6Dm tjf3KSn31YDHexrtgPt/QJBRcMTd2SLChayyKlJzBQHsxzfwoJy4/TnkaXBBzjfEFHTP FgZXypppHK6bXLfFZRzRs+MZhvBYXdWFtP81gPau7EHnw+5zXRTnU78ax8XXFJPYa2Es V9Hw== 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 t21si809975wmt.120.2017.06.19.15.38.03; Mon, 19 Jun 2017 15:38:04 -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 0CE5668A36C; Tue, 20 Jun 2017 01:37:56 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe05-1.mx.upcmail.net (vie01a-dmta-pe06-1.mx.upcmail.net [84.116.36.14]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1411468A36C for ; Tue, 20 Jun 2017 01:37:49 +0300 (EEST) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe06.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1dN5Iv-0006TI-Hy for ffmpeg-devel@ffmpeg.org; Tue, 20 Jun 2017 00:37:53 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id amdj1v00E0S5wYM01mdk69; Tue, 20 Jun 2017 00:37:45 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Tue, 20 Jun 2017 00:37:40 +0200 Message-Id: <20170619223741.26916-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.13.0 Subject: [FFmpeg-devel] [PATCH 1/2] avcodec/mpegvideo: Use intra_scantable in dct_unquantize_h263_intra_c() 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: Michael Niedermayer --- libavcodec/mpegvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 63a30b93ce..e29558b3a2 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -225,7 +225,7 @@ static void dct_unquantize_h263_intra_c(MpegEncContext *s, if(s->ac_pred) nCoeffs=63; else - nCoeffs= s->inter_scantable.raster_end[ s->block_last_index[n] ]; + nCoeffs= s->intra_scantable.raster_end[ s->block_last_index[n] ]; for(i=1; i<=nCoeffs; i++) { level = block[i];