Revision b7effd4e libavformat/sol.c

View differences:

libavformat/sol.c
93 93
    AVStream *st;
94 94

  
95 95
    /* check ".snd" header */
96
    magic = get_le16(pb);
97
    tag = get_le32(pb);
96
    magic = avio_rl16(pb);
97
    tag = avio_rl32(pb);
98 98
    if (tag != MKTAG('S', 'O', 'L', 0))
99 99
        return -1;
100
    rate = get_le16(pb);
101
    type = get_byte(pb);
102
    size = get_le32(pb);
100
    rate = avio_rl16(pb);
101
    type = avio_r8(pb);
102
    size = avio_rl32(pb);
103 103
    if (magic != 0x0B8D)
104
        get_byte(pb); /* newer SOLs contain padding byte */
104
        avio_r8(pb); /* newer SOLs contain padding byte */
105 105

  
106 106
    codec = sol_codec_id(magic, type);
107 107
    channels = sol_channels(magic, type);

Also available in: Unified diff