Revision f9329946

View differences:

libavformat/wav.c
232 232

  
233 233
    av_set_pts_info(st, 64, 1, st->codec->sample_rate);
234 234

  
235
    size = find_tag(pb, MKTAG('d', 'a', 't', 'a'));
235
    for (;;) {
236
        if (url_feof(pb))
237
            return -1;
238
        size = next_tag(pb, &tag);
239
        if (tag == MKTAG('d', 'a', 't', 'a')){
240
            break;
241
        }else if (tag == MKTAG('f','a','c','t') && !sample_count){
242
            sample_count = get_le32(pb);
243
            size -= 4;
244
        }
245
        url_fseek(pb, size, SEEK_CUR);
246
    }
236 247
    if (rf64)
237 248
        size = data_size;
238 249
    if (size < 0)

Also available in: Unified diff