Revision 6e89b612 libavformat/asfenc.c

View differences:

libavformat/asfenc.c
211 211
    if (url_open_dyn_buf(&dyn_buf) < 0)
212 212
        return;
213 213

  
214
    ff_put_str16_nolen(dyn_buf, tag);
214
    avio_put_str16le(dyn_buf, tag);
215 215
    len = url_close_dyn_buf(dyn_buf, &pb);
216 216
    put_le16(s, len);
217 217
    put_buffer(s, pb, len);
......
346 346
        hpos = put_header(pb, &ff_asf_comment_header);
347 347

  
348 348
        for (n = 0; n < FF_ARRAY_ELEMS(tags); n++) {
349
            len = tags[n] ? ff_put_str16_nolen(dyn_buf, tags[n]->value) : 0;
349
            len = tags[n] ? avio_put_str16le(dyn_buf, tags[n]->value) : 0;
350 350
            put_le16(pb, len);
351 351
        }
352 352
        len = url_close_dyn_buf(dyn_buf, &buf);
......
474 474
        if ( url_open_dyn_buf(&dyn_buf) < 0)
475 475
            return AVERROR(ENOMEM);
476 476

  
477
        ff_put_str16_nolen(dyn_buf, desc);
477
        avio_put_str16le(dyn_buf, desc);
478 478
        len = url_close_dyn_buf(dyn_buf, &buf);
479 479
        put_le16(pb, len / 2); // "number of characters" = length in bytes / 2
480 480

  

Also available in: Unified diff