mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
fixed yuy16_compress_to_yuy() sometimes writing all green video with YUV2 and UYVY (nw)
This commit is contained in:
parent
3e3f3aad8c
commit
72cce63c4a
@ -2452,7 +2452,7 @@ static avi_error yuy16_compress_to_yuy(avi_stream *stream, const bitmap_yuy16 &b
|
||||
|
||||
case FORMAT_VYUY:
|
||||
case FORMAT_YUY2:
|
||||
for (x = 0; x < stream->width && source < dataend; x++)
|
||||
for (x = 0; x < stream->width && dest < dataend; x++)
|
||||
{
|
||||
UINT16 pix = *source++;
|
||||
*dest++ = (pix >> 8) | (pix << 8);
|
||||
|
Loading…
Reference in New Issue
Block a user