Revision e63a3628 libavformat/iss.c

View differences:

libavformat/iss.c
44 44
    int i = 0;
45 45
    char c;
46 46

  
47
    while ((c = get_byte(s))) {
47
    while ((c = avio_r8(s))) {
48 48
        if(c == ' ')
49 49
            break;
50 50
        if (i < maxlen-1)
......
52 52
    }
53 53

  
54 54
    if(!c)
55
        get_byte(s);
55
        avio_r8(s);
56 56

  
57 57
    buf[i] = 0; /* Ensure null terminated, but may be truncated */
58 58
}

Also available in: Unified diff