Revision a2704c97 libavformat/aiffdec.c

View differences:

libavformat/aiffdec.c
232 232
            get_meta(s, "comment"  , size);
233 233
            break;
234 234
        case MKTAG('S', 'S', 'N', 'D'):     /* Sampled sound chunk */
235
            aiff->data_end = url_ftell(pb) + size;
235
            aiff->data_end = avio_tell(pb) + size;
236 236
            offset = avio_rb32(pb);      /* Offset of sound data */
237 237
            avio_rb32(pb);               /* BlockSize... don't care */
238
            offset += url_ftell(pb);    /* Compute absolute data offset */
238
            offset += avio_tell(pb);    /* Compute absolute data offset */
239 239
            if (st->codec->block_align)    /* Assume COMM already parsed */
240 240
                goto got_sound;
241 241
            if (url_is_streamed(pb)) {
......
292 292
    int res, size;
293 293

  
294 294
    /* calculate size of remaining data */
295
    max_size = aiff->data_end - url_ftell(s->pb);
295
    max_size = aiff->data_end - avio_tell(s->pb);
296 296
    if (max_size <= 0)
297 297
        return AVERROR_EOF;
298 298

  

Also available in: Unified diff