Browse Source

sws: dont write out of array on bigendian

Fixes Ticket2229

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 13 years ago
parent
commit
4e2c63685e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libswscale/swscale_unscaled.c

+ 3
- 0
libswscale/swscale_unscaled.c View File

@@ -605,6 +605,9 @@ static rgbConvFn findRgbConvFn(SwsContext *c)
}
}

if ((dstFormat == AV_PIX_FMT_RGB32_1 || dstFormat == AV_PIX_FMT_BGR32_1) && !isRGBA32(srcFormat) && ALT32_CORR<0)
return NULL;

return conv;
}



Loading…
Cancel
Save