Commit 9a5624a0 authored by Michael Niedermayer's avatar Michael Niedermayer

rgb24toyv12: break out in the middle before out of array reads.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b93e12fd
...@@ -2264,6 +2264,9 @@ static inline void RENAME(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_ ...@@ -2264,6 +2264,9 @@ static inline void RENAME(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_
ydst += lumStride; ydst += lumStride;
src += srcStride; src += srcStride;
if(y+1 == height)
break;
for (i=0; i<chromWidth; i++) { for (i=0; i<chromWidth; i++) {
unsigned int b = src[6*i+0]; unsigned int b = src[6*i+0];
unsigned int g = src[6*i+1]; unsigned int g = src[6*i+1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment