diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-09-22 21:25:09 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-09-22 21:25:09 +0000 |
commit | 3ed02129294036884677789488329be7b707d5d6 (patch) | |
tree | 021bee33db51252a1131ff424b6ea00b97d8ce6f /libavformat/img2.c | |
parent | c4f8d5d9f9001b7ece7f89fc756cf386f92528a4 (diff) | |
download | ffmpeg-3ed02129294036884677789488329be7b707d5d6.tar.gz |
10l
Originally committed as revision 3495 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/img2.c')
-rw-r--r-- | libavformat/img2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c index 413f5d02e6..7619d7fbc8 100644 --- a/libavformat/img2.c +++ b/libavformat/img2.c @@ -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; |