diff mov.c @ 4269:bbb6561a3974 libavformat

'code' is used to index a table so make it unsigned this prevents using negative index and possibly crashing with broken files
author aurel
date Wed, 21 Jan 2009 22:32:17 +0000
parents bf7a9658de71
children 571504a844b1
line wrap: on
line diff
--- a/mov.c	Wed Jan 21 13:27:39 2009 +0000
+++ b/mov.c	Wed Jan 21 22:32:17 2009 +0000
@@ -494,7 +494,7 @@
     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 */