From patchwork Fri Jan 13 12:53:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Andreas_H=C3=A5kon?= X-Patchwork-Id: 2206 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.89.21 with SMTP id n21csp168207vsb; Fri, 13 Jan 2017 04:53:37 -0800 (PST) X-Received: by 10.28.93.74 with SMTP id r71mr2099956wmb.67.1484312017082; Fri, 13 Jan 2017 04:53:37 -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 k5si781777wmf.154.2017.01.13.04.53.36; Fri, 13 Jan 2017 04:53:37 -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=@protonmail.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B207D68A3AA; Fri, 13 Jan 2017 14:53:25 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail2.protonmail.ch (mail2.protonmail.ch [185.70.40.22]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 120B0689FBB for ; Fri, 13 Jan 2017 14:53:19 +0200 (EET) Received: from B09B-5 (localhost [127.0.0.1]) by mail2.protonmail.ch (Postfix) with ESMTP id 2BDD0C45E4 for ; Fri, 13 Jan 2017 07:53:26 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1484312006; bh=es/9oje/w3bm/5qKzivEIPbRn4eu3C4xOiIfPN++jSs=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:Feedback-ID: From; b=XaVZ2MAq+R7ooLDawAsdJZULIhGLgd+AEVZWZ40KtA9rsbyosfv9+DkUtdZrhpyxx Ui7HgUbWRzkqnF3+hCf7c1dHHZ4PR6+SLGLVko13+flZhbSuDKL/6I1mkEVoBLBOBT CUrdGdQrBgXQz0ACZvb/ooK/GJ84/g7H6U1+BwUQ= Date: Fri, 13 Jan 2017 07:53:10 -0500 To: FFmpeg development discussions and patches From: =?UTF-8?Q?Andreas_H=C3=A5kon?= Message-ID: In-Reply-To: <2DCd9K57TSBnFb8WxRbSUs3WNJziGlTrUR-Hk3ak1zLSdb3htFmvQt3fpKtIq7UHt6s55Lp0t65W53-FSogaTy_V-TGibIkAhvIOiaeczWU=@protonmail.com> References: <2DCd9K57TSBnFb8WxRbSUs3WNJziGlTrUR-Hk3ak1zLSdb3htFmvQt3fpKtIq7UHt6s55Lp0t65W53-FSogaTy_V-TGibIkAhvIOiaeczWU=@protonmail.com> Feedback-ID: Mx8CaiV20jk_fqXDN0fFpg3vRaGkb9VCTrYRnZNHwEija3aOdqvFspzl6ODkmHrlSKJSx29p-LzkuvS_96L02A==:Ext:ProtonMail MIME-Version: 1.0 X-Spam-Status: No, score=-3.0 required=4.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE, MIME_BASE64_BLANKS,URIBL_BLOCKED autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail2.protonmail.ch X-Content-Filtered-By: Mailman/MimeDel 2.1.20 Subject: Re: [FFmpeg-devel] [PATCH 1/1] avformat: Fix Pro-MPEG non-square matrix 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" Hi, Impossible to send in plain-text... Attached as text/plain in base64 From 5b4401af5bdfe4736f5192f5dc118948f4906bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20H=C3=A5kon?= Date: Fri, 13 Jan 2017 13:07:57 +0100 Subject: [PATCH 1/1] avformat: Fix Pro-MPEG non-square matrix --- libavformat/prompeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/prompeg.c b/libavformat/prompeg.c index cc1baa4..9770a91 100644 --- a/libavformat/prompeg.c +++ b/libavformat/prompeg.c @@ -432,7 +432,7 @@ static int prompeg_write(URLContext *h, const uint8_t *buf, int size) { // FEC (column) send block-aligned if (!s->first && s->packet_idx % s->d == 0) { - col_out_idx = s->packet_idx / s->l; + col_out_idx = s->packet_idx / s->d; if ((ret = prompeg_write_fec(h, s->fec_col[col_out_idx], PROMPEG_FEC_COL)) < 0) goto end; written += ret;