Revision e356fc57 libavformat/qcp.c

View differences:

libavformat/qcp.c
93 93

  
94 94
    avio_rb32(pb);                    // "RIFF"
95 95
    s->file_size = avio_rl32(pb) + 8;
96
    url_fskip(pb, 8 + 4 + 1 + 1);    // "QLCMfmt " + chunk-size + major-version + minor-version
96
    avio_seek(pb, 8 + 4 + 1 + 1, SEEK_CUR);    // "QLCMfmt " + chunk-size + major-version + minor-version
97 97

  
98 98
    st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
99 99
    st->codec->channels   = 1;
......
110 110
        av_log(s, AV_LOG_ERROR, "Unknown codec GUID.\n");
111 111
        return AVERROR_INVALIDDATA;
112 112
    }
113
    url_fskip(pb, 2 + 80); // codec-version + codec-name
113
    avio_seek(pb, 2 + 80, SEEK_CUR); // codec-version + codec-name
114 114
    st->codec->bit_rate = avio_rl16(pb);
115 115

  
116 116
    s->packet_size = avio_rl16(pb);
117
    url_fskip(pb, 2); // block-size
117
    avio_seek(pb, 2, SEEK_CUR); // block-size
118 118
    st->codec->sample_rate = avio_rl16(pb);
119
    url_fskip(pb, 2); // sample-size
119
    avio_seek(pb, 2, SEEK_CUR); // sample-size
120 120

  
121 121
    memset(c->rates_per_mode, -1, sizeof(c->rates_per_mode));
122 122
    nb_rates = avio_rl32(pb);
......
129 129
        } else
130 130
            c->rates_per_mode[mode] = size;
131 131
    }
132
    url_fskip(pb, 16 - 2*nb_rates + 20); // empty entries of rate-map-table + reserved
132
    avio_seek(pb, 16 - 2*nb_rates + 20, SEEK_CUR); // empty entries of rate-map-table + reserved
133 133

  
134 134
    return 0;
135 135
}
......
174 174
        case MKTAG('v', 'r', 'a', 't'):
175 175
            if (avio_rl32(pb)) // var-rate-flag
176 176
                s->packet_size = 0;
177
            url_fskip(pb, 4); // size-in-packets
177
            avio_seek(pb, 4, SEEK_CUR); // size-in-packets
178 178
            break;
179 179
        case MKTAG('d', 'a', 't', 'a'):
180 180
            c->data_size = chunk_size;
181 181
            break;
182 182

  
183 183
        default:
184
            url_fskip(pb, chunk_size);
184
            avio_seek(pb, chunk_size, SEEK_CUR);
185 185
        }
186 186
    }
187 187
    return AVERROR_EOF;

Also available in: Unified diff