X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fqpeg.c;h=cb452621e7ddd8c8a26c8172b323928390911304;hb=7f22a4ebc97817fd0968f5ea8295c9a59a6292e0;hp=e1210c197206024e95915f38688c87b08694eca4;hpb=c00b218a8f75ed3eb87c213d95bd5775c0af5e12;p=ffmpeg diff --git a/libavcodec/qpeg.c b/libavcodec/qpeg.c index e1210c19720..cb452621e7d 100644 --- a/libavcodec/qpeg.c +++ b/libavcodec/qpeg.c @@ -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; }