mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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
This commit is contained in:
parent
d95ba51136
commit
4ec5daba5f
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue