[FFmpeg-cvslog] avformat: Fix Pro-MPEG non-square matrix

Andreas Håkon git at videolan.org
Tue Jun 27 14:36:43 EEST 2017


ffmpeg | branch: master | Andreas Håkon <andreas.hakon at protonmail.com> | Fri Jan 13 13:07:57 2017 +0100| [a29c7127297af7f72384cb2a96571853d16e6f82] | committer: Michael Niedermayer

avformat: Fix Pro-MPEG non-square matrix

Reviewed-by:vtarca at mobibase.com
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a29c7127297af7f72384cb2a96571853d16e6f82
---

 libavformat/prompeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list