[FFmpeg-cvslog] Fix incorrect unsigned->signed conversion.

Dale Curtis git at videolan.org
Fri Jun 15 01:45:28 CEST 2012


ffmpeg | branch: master | Dale Curtis <dalecurtis at chromium.org> | Thu Jun 14 15:22:25 2012 -0700| [71529bd8c512bdb47d8d57fc27ff295bc635a561] | committer: Michael Niedermayer

Fix incorrect unsigned->signed conversion.

Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=71529bd8c512bdb47d8d57fc27ff295bc635a561
---

 libavformat/matroskadec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index e8f70f9..4690e01 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) {



More information about the ffmpeg-cvslog mailing list