diff isom.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 77e0c7511d41
children 674bf341b7e3
line wrap: on
line diff
--- a/isom.c	Wed Jan 21 13:27:39 2009 +0000
+++ b/isom.c	Wed Jan 21 22:32:17 2009 +0000
@@ -274,7 +274,7 @@
     return code;
 }
 
-int ff_mov_lang_to_iso639(int code, char *to)
+int ff_mov_lang_to_iso639(unsigned code, char *to)
 {
     int i;
     /* is it the mangled iso code? */