Revision 8312e3fc

View differences:

libavformat/ape.c
242 242
            avio_seek(pb, ape->wavheaderlength, SEEK_CUR);
243 243
    }
244 244

  
245
    if(!ape->totalframes){
246
        av_log(s, AV_LOG_ERROR, "No frames in the file!\n");
247
        return AVERROR(EINVAL);
248
    }
245 249
    if(ape->totalframes > UINT_MAX / sizeof(APEFrame)){
246 250
        av_log(s, AV_LOG_ERROR, "Too many frames: %d\n", ape->totalframes);
247 251
        return -1;

Also available in: Unified diff