Revision 24519edf

View differences:

libavformat/asfdec.c
103 103
    get_buffer(s, *g, sizeof(*g));
104 104
}
105 105

  
106
#if 0
107
static void get_str16(ByteIOContext *pb, char *buf, int buf_size)
108
{
109
    int len, c;
110
    char *q;
111

  
112
    len = get_le16(pb);
113
    q = buf;
114
    while (len > 0) {
115
        c = get_le16(pb);
116
        if ((q - buf) < buf_size - 1)
117
            *q++ = c;
118
        len--;
119
    }
120
    *q = '\0';
121
}
122
#endif
123

  
124 106
static int asf_probe(AVProbeData *pd)
125 107
{
126 108
    /* check file header */
......
567 549
                    url_fskip(pb, name_len - ret);
568 550
                ff_new_chapter(s, i, (AVRational){1, 10000000}, pres_time, AV_NOPTS_VALUE, name );
569 551
            }
570
#if 0
571
        } else if (!ff_guidcmp(&g, &ff_asf_codec_comment_header)) {
572
            int len, v1, n, num;
573
            char str[256], *q;
574
            char tag[16];
575

  
576
            ff_get_guid(pb, &g);
577
            print_guid(&g);
578

  
579
            n = get_le32(pb);
580
            for(i=0;i<n;i++) {
581
                num = get_le16(pb); /* stream number */
582
                get_str16(pb, str, sizeof(str));
583
                get_str16(pb, str, sizeof(str));
584
                len = get_le16(pb);
585
                q = tag;
586
                while (len > 0) {
587
                    v1 = get_byte(pb);
588
                    if ((q - tag) < sizeof(tag) - 1)
589
                        *q++ = v1;
590
                    len--;
591
                }
592
                *q = '\0';
593
            }
594
#endif
595 552
        } else if (url_feof(pb)) {
596 553
            return -1;
597 554
        } else {

Also available in: Unified diff