mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
ffmpegcolorspace: Don't crash when doing gray YUV to GRAY conversion
This commit is contained in:
parent
2ec067c9fc
commit
398c1c5fc8
1 changed files with 2 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue