aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-01-21 22:32:17 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-01-21 22:32:17 +0000
commitdce25564cc554cc85c8c28928b1b8d3f965c1b16 (patch)
treee62af5fbf2444d5a1a64ae36528132c5de209f05 /libavformat/mov.c
parent448887a6bb44b267e897899ca48b71bd4f407711 (diff)
downloadffmpeg-dce25564cc554cc85c8c28928b1b8d3f965c1b16.tar.gz
'code' is used to index a table so make it unsigned
this prevents using negative index and possibly crashing with broken files Originally committed as revision 16714 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index fc946ea33a..0a93444d18 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -494,7 +494,7 @@ static int mov_read_mdhd(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
AVStream *st = c->fc->streams[c->fc->nb_streams-1];
MOVStreamContext *sc = st->priv_data;
int version = get_byte(pb);
- int lang;
+ unsigned lang;
if (version > 1)
return -1; /* unsupported */