Revision 29a29043 libavformat/ape.c
libavformat/ape.c | ||
---|---|---|
250 | 250 |
av_log(s, AV_LOG_ERROR, "Too many frames: %d\n", ape->totalframes); |
251 | 251 |
return -1; |
252 | 252 |
} |
253 |
if (ape->seektablelength && (ape->seektablelength / sizeof(*ape->seektable)) < ape->totalframes) { |
|
254 |
av_log(s, AV_LOG_ERROR, "Number of seek entries is less than number of frames: %d vs. %d\n", |
|
255 |
ape->seektablelength / sizeof(*ape->seektable), ape->totalframes); |
|
256 |
return AVERROR_INVALIDDATA; |
|
257 |
} |
|
253 | 258 |
ape->frames = av_malloc(ape->totalframes * sizeof(APEFrame)); |
254 | 259 |
if(!ape->frames) |
255 | 260 |
return AVERROR(ENOMEM); |
Also available in: Unified diff