Revision bd51c013

View differences:

libavformat/mp3.c
198 198
    }
199 199

  
200 200
    if (!strcmp(key, "genre")
201
        && sscanf(dst, "(%d)", &genre) == 1 && genre <= ID3v1_GENRE_MAX)
201
        && (sscanf(dst, "(%d)", &genre) == 1 || sscanf(dst, "%d", &genre) == 1)
202
        && genre <= ID3v1_GENRE_MAX)
202 203
        av_strlcpy(dst, id3v1_genre_str[genre], sizeof(dst));
203 204

  
204 205
    if (*dst)

Also available in: Unified diff