From dce25564cc554cc85c8c28928b1b8d3f965c1b16 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Wed, 21 Jan 2009 22:32:17 +0000 Subject: '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 --- libavformat/isom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/isom.h') diff --git a/libavformat/isom.h b/libavformat/isom.h index 934dde8388..2cad5b8b68 100644 --- a/libavformat/isom.h +++ b/libavformat/isom.h @@ -33,7 +33,7 @@ extern const AVCodecTag codec_movaudio_tags[]; extern const AVCodecTag ff_codec_movsubtitle_tags[]; int ff_mov_iso639_to_lang(const char *lang, int mp4); -int ff_mov_lang_to_iso639(int code, char *to); +int ff_mov_lang_to_iso639(unsigned code, char *to); typedef struct { int count; -- cgit v1.2.3