Revision 66e5b1df libavformat/cafdec.c

View differences:

libavformat/cafdec.c
219 219

  
220 220
    /* parse each chunk */
221 221
    found_data = 0;
222
    while (!url_feof(pb)) {
222
    while (!pb->eof_reached) {
223 223

  
224 224
        /* stop at data chunk if seeking is not supported or
225 225
           data chunk size is unknown */
......
228 228

  
229 229
        tag  = avio_rb32(pb);
230 230
        size = avio_rb64(pb);
231
        if (url_feof(pb))
231
        if (pb->eof_reached)
232 232
            break;
233 233

  
234 234
        switch (tag) {
......
307 307
    int res, pkt_size = 0, pkt_frames = 0;
308 308
    int64_t left      = CAF_MAX_PKT_SIZE;
309 309

  
310
    if (url_feof(pb))
310
    if (pb->eof_reached)
311 311
        return AVERROR(EIO);
312 312

  
313 313
    /* don't read past end of data chunk */

Also available in: Unified diff