summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 17:34:51 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 17:34:51 +0100
commit28c8682c8c3044091b0b28c639280271a9d5a75b (patch)
treea1eb24d92ecca205a7f04a2a918a06d06c9c4151 /src
parentbc5f6a15e9a7433396edc86e6ce68cb42b6f470b (diff)
downloadxine-lib-28c8682c8c3044091b0b28c639280271a9d5a75b.tar.gz
xine-lib-28c8682c8c3044091b0b28c639280271a9d5a75b.tar.bz2
Use parse_ebml_sint rather than parse_ebml_uint when reading int64_t types.
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_matroska.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demuxers/demux_matroska.c b/src/demuxers/demux_matroska.c
index 7deceb500..f8166173a 100644
--- a/src/demuxers/demux_matroska.c
+++ b/src/demuxers/demux_matroska.c
@@ -1845,7 +1845,7 @@ static int parse_block (demux_matroska_t *this, uint64_t block_size,
int decoder_flags = 0;
data = this->block_data;
- if (!(num_len = parse_ebml_uint(this, data, &track_num)))
+ if (!(num_len = parse_ebml_sint(this, data, &track_num)))
return 0;
data += num_len;
@@ -1977,7 +1977,7 @@ static int parse_block (demux_matroska_t *this, uint64_t block_size,
lprintf("ebml lacing\n");
/* size of each frame */
- if (!(num_len = parse_ebml_uint(this, data, &tmp)))
+ if (!(num_len = parse_ebml_sint(this, data, &tmp)))
return 0;
data += num_len; block_size_left -= num_len;
frame[0] = (int) tmp;