Originally committed as revision 3495 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-09-22 21:25:09 +00:00
parent c4f8d5d9f9
commit 3ed0212929
1 changed files with 3 additions and 2 deletions

View File

@ -46,8 +46,9 @@ static const IdStrMap img_tags[] = {
static enum CodecID av_str2id(const IdStrMap *tags, const char *str)
{
while(*str && *str!='.') str++;
if(*str) str++;
str= strrchr(str, '.');
if(!str) return CODEC_ID_NONE;
str++;
while (tags->id) {
int i;