summaryrefslogtreecommitdiffstats
path: root/gst/qtdemux
diff options
context:
space:
mode:
authorJan Schmidt <jan.schmidt@sun.com>2009-01-30 17:34:45 +0000
committerJan Schmidt <jan.schmidt@sun.com>2009-01-30 17:34:45 +0000
commitfea851d100ad6a81f1d4c6b4bdc4af6cf9cd39ab (patch)
treeb33a77a5e4fb6ac1f5a927f2ac38ac6c96c5eb82 /gst/qtdemux
parent367f9123def760d79d3cba3e86e00af098a644a0 (diff)
Don't do void pointer arithmetic
Diffstat (limited to 'gst/qtdemux')
-rw-r--r--gst/qtdemux/qtdemux.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index c54ef39d..243f462a 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -3513,8 +3513,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
break;
GST_DEBUG_OBJECT (qtdemux, "found colr");
/* try to extract colour space info */
- if (QT_UINT8 (colr->data + 8) == 1) {
- switch (QT_UINT32 (colr->data + 11)) {
+ if (QT_UINT8 ((guint8 *) colr->data + 8) == 1) {
+ switch (QT_UINT32 ((guint8 *) colr->data + 11)) {
case 16:
fourcc = GST_MAKE_FOURCC ('s', 'R', 'G', 'B');
break;
@@ -3539,7 +3539,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
/* indicate possible fields in caps */
if (field) {
- data = field->data + 8;
+ data = (guint8 *) field->data + 8;
if (*data != 1)
gst_caps_set_simple (stream->caps, "fields", G_TYPE_INT,
(gint) * data, NULL);
@@ -4041,8 +4041,8 @@ qtdemux_tag_add_covr (GstQTDemux * qtdemux, const char *tag1, const char *dummy,
type = QT_UINT32 ((guint8 *) data->data + 8);
GST_DEBUG_OBJECT (qtdemux, "have covr tag, type=%d,len=%d", type, len);
if ((type == 0x0000000d || type == 0x0000000e) && len > 16) {
- if ((buf = gst_tag_image_data_to_image_buffer (data->data + 16, len - 16,
- GST_TAG_IMAGE_TYPE_NONE))) {
+ if ((buf = gst_tag_image_data_to_image_buffer ((guint8 *) data->data + 16,
+ len - 16, GST_TAG_IMAGE_TYPE_NONE))) {
GST_DEBUG_OBJECT (qtdemux, "adding tag size %d", len - 16);
gst_tag_list_add (qtdemux->tag_list, GST_TAG_MERGE_REPLACE,
tag1, buf, NULL);