Revision 2874c81c libavformat/ape.c
libavformat/ape.c | ||
---|---|---|
248 | 248 |
} |
249 | 249 |
ape->frames = av_malloc(ape->totalframes * sizeof(APEFrame)); |
250 | 250 |
if(!ape->frames) |
251 |
return AVERROR_NOMEM;
|
|
251 |
return AVERROR(ENOMEM);
|
|
252 | 252 |
ape->firstframe = ape->junklength + ape->descriptorlength + ape->headerlength + ape->seektablelength + ape->wavheaderlength; |
253 | 253 |
ape->currentframe = 0; |
254 | 254 |
|
... | ... | |
351 | 351 |
nblocks = ape->blocksperframe; |
352 | 352 |
|
353 | 353 |
if (av_new_packet(pkt, ape->frames[ape->currentframe].size + extra_size) < 0) |
354 |
return AVERROR_NOMEM;
|
|
354 |
return AVERROR(ENOMEM);
|
|
355 | 355 |
|
356 | 356 |
AV_WL32(pkt->data , nblocks); |
357 | 357 |
AV_WL32(pkt->data + 4, ape->frames[ape->currentframe].skip); |
Also available in: Unified diff