summaryrefslogtreecommitdiff
path: root/libavformat/img2.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-09-22 21:25:09 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-09-22 21:25:09 +0000
commit3ed02129294036884677789488329be7b707d5d6 (patch)
tree021bee33db51252a1131ff424b6ea00b97d8ce6f /libavformat/img2.c
parentc4f8d5d9f9001b7ece7f89fc756cf386f92528a4 (diff)
downloadffmpeg-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.c5
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;