Revision e63a3628 libavformat/psxstr.c

View differences:

libavformat/psxstr.c
105 105
    int i;
106 106

  
107 107
    /* skip over any RIFF header */
108
    if (get_buffer(pb, sector, RIFF_HEADER_SIZE) != RIFF_HEADER_SIZE)
108
    if (avio_read(pb, sector, RIFF_HEADER_SIZE) != RIFF_HEADER_SIZE)
109 109
        return AVERROR(EIO);
110 110
    if (AV_RL32(&sector[0]) == RIFF_TAG)
111 111
        start = RIFF_HEADER_SIZE;
......
136 136

  
137 137
    while (1) {
138 138

  
139
        if (get_buffer(pb, sector, RAW_CD_SECTOR_SIZE) != RAW_CD_SECTOR_SIZE)
139
        if (avio_read(pb, sector, RAW_CD_SECTOR_SIZE) != RAW_CD_SECTOR_SIZE)
140 140
            return AVERROR(EIO);
141 141

  
142 142
        channel = sector[0x11];

Also available in: Unified diff