Revision 6e89b612 libavformat/asf.c

View differences:

libavformat/asf.c
156 156
//  { "Year"               , "date"        }, TODO: conversion year<->date
157 157
    { 0 }
158 158
};
159

  
160
int ff_put_str16_nolen(ByteIOContext *s, const char *tag)
161
{
162
    const uint8_t *q = tag;
163
    int ret = 0;
164

  
165
    while (*q) {
166
        uint32_t ch;
167
        uint16_t tmp;
168

  
169
        GET_UTF8(ch, *q++, break;)
170
        PUT_UTF16(ch, tmp, put_le16(s, tmp);ret += 2;)
171
    }
172
    put_le16(s, 0);
173
    ret += 2;
174
    return ret;
175
}

Also available in: Unified diff