]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/qpeg.c
avcodec/truemotion2rt: Fix rounding in input size check
[ffmpeg] / libavcodec / qpeg.c
index e1210c197206024e95915f38688c87b08694eca4..cb452621e7ddd8c8a26c8172b323928390911304 100644 (file)
@@ -85,6 +85,12 @@ static void qpeg_decode_intra(QpegContext *qctx, uint8_t *dst,
                     filled = 0;
                     dst -= stride;
                     rows_to_go--;
+                    while (run - i > width && rows_to_go > 0) {
+                        memset(dst, p, width);
+                        dst -= stride;
+                        rows_to_go--;
+                        i += width;
+                    }
                     if(rows_to_go <= 0)
                         break;
                 }