Revision 0a770ae7 libavformat/oggparsevorbis.c

View differences:

libavformat/oggparsevorbis.c
39 39
    if (size < 8) /* must have vendor_length and user_comment_list_length */
40 40
        return -1;
41 41

  
42
    s = AV_RL32(p);
43
    p += 4;
42
    s = bytestream_get_le32(&p);
44 43
    size -= 4;
45 44

  
46 45
    if (size - 4 < s)
......
49 48
    p += s;
50 49
    size -= s;
51 50

  
52
    n = AV_RL32(p);
53
    p += 4;
51
    n = bytestream_get_le32(&p);
54 52
    size -= 4;
55 53

  
56 54
    while (size >= 4) {
57 55
        char *t, *v;
58 56
        int tl, vl;
59 57

  
60
        s = AV_RL32(p);
61
        p += 4;
58
        s = bytestream_get_le32(&p);
62 59
        size -= 4;
63 60

  
64 61
        if (size < s)

Also available in: Unified diff