diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c index 4d8a4434ee69d6d506ed66fa48115699c72b80e2..30075f60277ff1f42cc138f73592d6a23e9cb298 100644 --- a/libswscale/swscale_template.c +++ b/libswscale/swscale_template.c @@ -2964,12 +2964,12 @@ static int RENAME(swScale)(SwsContext *c, uint8_t* src[], int srcStride[], int s if (dstStride[0]%8 !=0 || dstStride[1]%8 !=0 || dstStride[2]%8 !=0) { - static int firstTime=1; //FIXME move this into the context perhaps - if (flags & SWS_PRINT_INFO && firstTime) + static int warnedAlready=0; //FIXME move this into the context perhaps + if (flags & SWS_PRINT_INFO && !warnedAlready) { av_log(c, AV_LOG_WARNING, "Warning: dstStride is not aligned!\n" " ->cannot do aligned memory accesses anymore\n"); - firstTime=0; + warnedAlready=1; } }