Revision 7c892951 libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
554 554
    return buf;
555 555
}
556 556

  
557
void ff_get_line(ByteIOContext *s, char *buf, int maxlen)
558
{
559
    int i = 0;
560
    char c;
561

  
562
    do {
563
        c = get_byte(s);
564
        if (i < maxlen-1)
565
            buf[i++] = c;
566
    } while (c != '\n' && c);
567

  
568
    buf[i] = 0;
569
}
570

  
557 571
uint64_t get_be64(ByteIOContext *s)
558 572
{
559 573
    uint64_t val;

Also available in: Unified diff