diff --git a/libavformat/ape.c b/libavformat/ape.c index 640a7f699bca87e7413cc734c25cf84e3e0068ae..fff85c4edba22e4b032b3a27085ea81b39cbc4c9 100644 --- a/libavformat/ape.c +++ b/libavformat/ape.c @@ -278,6 +278,9 @@ static int ape_read_header(AVFormatContext * s) return AVERROR(ENOMEM); for (i = 0; i < ape->seektablelength / sizeof(uint32_t); i++) ape->seektable[i] = avio_rl32(pb); + }else{ + av_log(s, AV_LOG_ERROR, "Missing seektable\n"); + return -1; } ape->frames[0].pos = ape->firstframe;