sys/ximage/gstximagesrc.c: Fix presumably copy'n'pasto for 16bpp depth.

Original commit message from CVS:
* sys/ximage/gstximagesrc.c: (composite_pixel):
Fix presumably copy'n'pasto for 16bpp depth.
This commit is contained in:
Tim-Philipp Müller 2006-12-24 11:36:31 +00:00
parent 7735292ec2
commit 3d1e70c2d1
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-12-24 Tim-Philipp Müller <tim at centricular dot net>
* sys/ximage/gstximagesrc.c: (composite_pixel):
Fix presumably copy'n'pasto for 16bpp depth.
2006-12-24 Tim-Philipp Müller <tim at centricular dot net>
* gst/matroska/matroska-mux.c:

View file

@ -265,7 +265,7 @@ composite_pixel (GstXContext * xcontext, guchar * dest, guchar * src)
color = *dest;
break;
case 16:
color = GUINT16_FROM_LE (*(guint32 *) (dest));
color = GUINT16_FROM_LE (*(guint16 *) (dest));
break;
case 32:
color = GUINT32_FROM_LE (*(guint32 *) (dest));