diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-21 22:32:17 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-21 22:32:17 +0000 |
commit | dce25564cc554cc85c8c28928b1b8d3f965c1b16 (patch) | |
tree | e62af5fbf2444d5a1a64ae36528132c5de209f05 /libavformat/isom.c | |
parent | 448887a6bb44b267e897899ca48b71bd4f407711 (diff) | |
download | ffmpeg-streaming-dce25564cc554cc85c8c28928b1b8d3f965c1b16.zip ffmpeg-streaming-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/isom.c')
-rw-r--r-- | libavformat/isom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/isom.c b/libavformat/isom.c index 73ee328..39c58c6 100644 --- a/libavformat/isom.c +++ b/libavformat/isom.c @@ -274,7 +274,7 @@ int ff_mov_iso639_to_lang(const char *lang, int mp4) 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? */ |