diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2003-06-20 15:21:25 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2003-06-20 15:21:25 +0000 |
commit | eb60dddc2e5b61041409ededb337d2ba1c21ef03 (patch) | |
tree | 6d7b12513cfa613fef699f9df44e1a09a8d1d8bb /libavcodec/mjpeg.c | |
parent | a7d3e7729ad2acde4acec45ddc9f61a1a23be05b (diff) | |
download | ffmpeg-eb60dddc2e5b61041409ededb337d2ba1c21ef03.tar.gz |
some warning fixes
Originally committed as revision 1977 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpeg.c')
-rw-r--r-- | libavcodec/mjpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c index ec80464468..454238a4c2 100644 --- a/libavcodec/mjpeg.c +++ b/libavcodec/mjpeg.c @@ -1599,7 +1599,7 @@ out: static int mjpeg_decode_com(MJpegDecodeContext *s) { /* XXX: verify len field validity */ - unsigned int len = get_bits(&s->gb, 16); + int len = get_bits(&s->gb, 16); if (len >= 2 && len < 32768) { /* XXX: any better upper bound */ uint8_t *cbuf = av_malloc(len - 1); |