summaryrefslogtreecommitdiff
path: root/libavformat/prompeg.c
diff options
context:
space:
mode:
authorAndreas HÃ¥kon <andreas.hakon@protonmail.com>2017-01-13 13:07:57 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-06-27 12:54:06 +0200
commita29c7127297af7f72384cb2a96571853d16e6f82 (patch)
treed50e523adb9749a4f144137d171e08297b6f624a /libavformat/prompeg.c
parent430d4f2bb52e6d1d7d375186cb5c710008a20603 (diff)
avformat: Fix Pro-MPEG non-square matrix
Reviewed-by:vtarca@mobibase.com Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/prompeg.c')
-rw-r--r--libavformat/prompeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/prompeg.c b/libavformat/prompeg.c
index cc1baa4ac0..9770a916a2 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;