Revision 7cb8f314 libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
210 210
    put_byte(s, val);
211 211
}
212 212

  
213
/* IEEE format is assumed */
214
void put_be64_double(ByteIOContext *s, double val)
215
{
216
    union {
217
        double d;
218
        uint64_t ull;
219
    } u;
220
    u.d = val;
221
    put_be64(s, u.ull);
222
}
223

  
224 213
void put_strz(ByteIOContext *s, const char *str)
225 214
{
226 215
    if (str)
......
449 438
    return val;
450 439
}
451 440

  
452
double get_be64_double(ByteIOContext *s)
453
{
454
    union {
455
        double d;
456
        uint64_t ull;
457
    } u;
458

  
459
    u.ull = get_be64(s);
460
    return u.d;
461
}
462

  
463 441
char *get_strz(ByteIOContext *s, char *buf, int maxlen)
464 442
{
465 443
    int i = 0;

Also available in: Unified diff