aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-31 01:33:24 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-10-31 01:53:37 +0100
commitfbf4b390d02ac53ce8558016c791d7e21b8ebfa4 (patch)
treeefc8a61362e1a2907c860650acab3bf4845d4308
parent938458094b054fbeb23722f4c3ef705414f840de (diff)
downloadffmpeg-fbf4b390d02ac53ce8558016c791d7e21b8ebfa4.tar.gz
sws: increase stride alignment requirement for the warning print code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index f0bde4795b..d5dfa07a31 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"