Ticket #825: patchasftrack.diff

File patchasftrack.diff, 545 bytes (added by cehoyos, 5 years ago)
  • libavformat/asfdec.c

    diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
    index 3f733f7..a58b8a5 100644
    a b static void get_tag(AVFormatContext *s, const char *key, int type, int len) 
    176176        av_log(s, AV_LOG_DEBUG, "Unsupported value type %d in tag %s.\n", type, key); 
    177177        goto finish; 
    178178    } 
     179    if (!memcmp(key, "WM/Track\0", 9)) 
     180        snprintf(value, 2 * len + 1, "%ld", strtol(value, NULL, 10) + 1); 
    179181    if (*value) 
    180182        av_dict_set(&s->metadata, key, value, 0); 
    181183finish: