X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fprompeg.c;h=9770a916a2ba43cd50f991804d8cdcaf5c0700fd;hb=3d2da6d585509daddcd65f206b1a262c9c78cbce;hp=cc1baa4ac0967f8a36247d485327e79cd4e2d81c;hpb=ed1fe7b2feeb914750ffca2ed030738b3cdc4858;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;