diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2012-06-15 02:22:25 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-15 03:17:13 +0400 |
commit | 71529bd8c512bdb47d8d57fc27ff295bc635a561 (patch) | |
tree | 2c415084fc68478b3c4b0e17ca8831a7f4862859 /libavformat/matroskadec.c | |
parent | 15f8941108c5372862035ce8e3cbfd2a6cefb241 (diff) |
Fix incorrect unsigned->signed conversion.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index e8f70f96c1..4690e01d3c 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -2040,7 +2040,8 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, } } else { MatroskaTrackEncoding *encodings = track->encodings.elem; - int offset = 0, pkt_size = lace_size[n]; + int offset = 0; + uint32_t pkt_size = lace_size[n]; uint8_t *pkt_data = data; if (pkt_size > size) { |