Revision 4efd5cf3 libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
265 265
    put_byte(s, val);
266 266
}
267 267

  
268
#if FF_API_OLD_AVIO
268 269
void put_strz(ByteIOContext *s, const char *str)
269 270
{
270
    if (str)
271
        put_buffer(s, (const unsigned char *) str, strlen(str) + 1);
272
    else
271
    avio_put_str(s, str);
272
}
273
#endif
274

  
275
int avio_put_str(ByteIOContext *s, const char *str)
276
{
277
    int len = 1;
278
    if (str) {
279
        len += strlen(str);
280
        put_buffer(s, (const unsigned char *) str, len);
281
    } else
273 282
        put_byte(s, 0);
283
    return len;
274 284
}
275 285

  
276 286
int ff_get_v_length(uint64_t val){

Also available in: Unified diff