[FFmpeg-devel] [PATCH] remove a useless comparison in avlanguage.c
Benoit Fouet
benoit.fouet
Tue Jun 16 16:16:02 CEST 2009
Hi,
here is the only patch I found when comparing codebase from
www.ffavs.net and ffmpeg one.
fixes the warning:
libavformat/avlanguage.c:741: warning: comparison of unsigned expression
< 0 is always false
Index: libavformat/avlanguage.c
===================================================================
--- libavformat/avlanguage.c (revision 19205)
+++ libavformat/avlanguage.c (working copy)
@@ -738,7 +738,7 @@ const char *av_convert_lang_to(const cha
const LangEntry *entry = NULL;
const int NB_CODESPACES =
sizeof(lang_table_counts)/sizeof(*lang_table_counts);
- if (target_codespace < 0 || target_codespace >= NB_CODESPACES)
+ if (target_codespace >= NB_CODESPACES)
return NULL;
for (i=0; !entry && i<NB_CODESPACES; i++)
Ben
More information about the ffmpeg-devel
mailing list