summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2013-06-19 16:22:30 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2013-06-19 16:22:30 +0000
commit72cce63c4a90a8d31ef8d3856dc5201fefdc2f70 (patch)
tree3c341b2d9c90f8030ca614c09242a3c4f29c9342 /src/lib
parent3e3f3aad8cce64f0b49fe6ebf1e183815d6c18c0 (diff)
fixed yuy16_compress_to_yuy() sometimes writing all green video with YUV2 and UYVY (nw)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util/aviio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/aviio.c b/src/lib/util/aviio.c
index e6729350af2..4cabe446f1f 100644
--- a/src/lib/util/aviio.c
+++ b/src/lib/util/aviio.c
@@ -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);