X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fprompeg.c;h=9770a916a2ba43cd50f991804d8cdcaf5c0700fd;hb=96d70694aea64616c68db8be306c159c73fb3980;hp=cc1baa4ac0967f8a36247d485327e79cd4e2d81c;hpb=90fe0800fb84d46994c351e0c0ff200a14d27168;p=ffmpeg diff --git a/libavformat/prompeg.c b/libavformat/prompeg.c index cc1baa4ac09..9770a916a2b 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;