[FFmpeg-cvslog] sws: increase stride alignment requirement for the warning print code.

Michael Niedermayer git at videolan.org
Mon Oct 31 01:57:12 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct 31 01:33:24 2011 +0100| [fbf4b390d02ac53ce8558016c791d7e21b8ebfa4] | committer: Michael Niedermayer

sws: increase stride alignment requirement for the warning print code.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libswscale/swscale.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index f0bde47..d5dfa07 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -2530,7 +2530,7 @@ static int swScale(SwsContext *c, const uint8_t* src[],
     DEBUG_BUFFERS("vLumFilterSize: %d vLumBufSize: %d vChrFilterSize: %d vChrBufSize: %d\n",
                    vLumFilterSize,    vLumBufSize,    vChrFilterSize,    vChrBufSize);
 
-    if (dstStride[0]%8 !=0 || dstStride[1]%8 !=0 || dstStride[2]%8 !=0 || dstStride[3]%8 != 0) {
+    if (dstStride[0]%16 !=0 || dstStride[1]%16 !=0 || dstStride[2]%16 !=0 || dstStride[3]%16 != 0) {
         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"



More information about the ffmpeg-cvslog mailing list