summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott D Phillips <scott.d.phillips@intel.com>2016-11-28 13:45:24 -0800
committerSebastian Dröge <sebastian@centricular.com>2016-11-29 13:12:24 +0200
commit4ec5daba5fe93703f0a7963b1e69f39035fde26f (patch)
treee643736bce49082970165971d483f08dc33fc615
parentd95ba51136d9d875a7701cc1e566beb6825bc22c (diff)
qtdemux: Change off_t type to gint
off_t is a signed integer type provided by sys/types.h on posix systems. Replace with gint for building on non-posix systems (like windows). https://bugzilla.gnome.org/show_bug.cgi?id=775287
-rw-r--r--gst/isomp4/qtdemux.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
index 3580500ef..4bb6a7543 100644
--- a/gst/isomp4/qtdemux.c
+++ b/gst/isomp4/qtdemux.c
@@ -10166,9 +10166,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
* page 92, "Video Sample Description", under table 3.1 */
GstByteReader br;
- const off_t compressor_offset =
- 16 + 4 + 4 * 3 + 2 * 2 + 2 * 4 + 4 + 2;
- const off_t min_size = compressor_offset + 32 + 2 + 2;
+ const gint compressor_offset = 16 + 4 + 4 * 3 + 2 * 2 + 2 * 4 + 4 + 2;
+ const gint min_size = compressor_offset + 32 + 2 + 2;
GNode *jpeg;
guint32 len;
guint16 color_table_id = 0;
@@ -10192,7 +10191,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
if (color_table_id != 0) {
/* the spec says there can be concatenated chunks in the data, and we want
* to find one called field. Walk through them. */
- off_t offset = min_size;
+ gint offset = min_size;
while (offset + 8 < len) {
guint32 size = 0, tag;
ok = gst_byte_reader_get_uint32_le (&br, &size);