Revision 6538c0f1

View differences:

libavformat/asfdec.c
161 161
    if (!value)
162 162
        return;
163 163

  
164
    if (type <= 1) {         // unicode or byte
164
    if (type == 0) {         // UTF16-LE
165 165
        get_str16_nolen(s->pb, len, value, len);
166
    } else if (type <= 5) {  // boolean or DWORD or QWORD or WORD
166
    } else if (type > 1 && type <= 5) {  // boolean or DWORD or QWORD or WORD
167 167
        uint64_t num = get_value(s->pb, type);
168 168
        snprintf(value, len, "%"PRIu64, num);
169 169
    } else {

Also available in: Unified diff