ffmpegcolorspace: Don't crash when doing gray YUV to GRAY conversion

This commit is contained in:
Sebastian Dröge 2010-06-12 16:31:49 +02:00
parent 2ec067c9fc
commit 398c1c5fc8

View file

@ -3138,6 +3138,8 @@ img_convert (AVPicture * dst, int dst_pix_fmt,
h >>= dst_pix->y_chroma_shift;
for (i = 1; i <= 2; i++) {
d = dst->data[i];
if (!d)
continue;
for (y = 0; y < h; y++) {
memset (d, 128, w);
d += dst->linesize[i];