From 5b4401af5bdfe4736f5192f5dc118948f4906bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20H=C3=A5kon?= <andreas.hakon@protonmail.com> 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; -- 2.8.3