mirror of
https://github.com/nu774/fdkaac.git
synced 2025-06-05 23:29:14 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
3bf454a5a3 | |||
22dbf72491 | |||
03c3c60191 |
16
ChangeLog
16
ChangeLog
@ -1,12 +1,24 @@
|
|||||||
2022-07-13 nu774 <honeycomb77@gmail.com>
|
2022-08-04 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
* bump [HEAD -> master]
|
* bump [HEAD -> master]
|
||||||
|
|
||||||
|
* fdk-aac.vcxproj: support vs2022
|
||||||
|
|
||||||
|
* extrapolater: don't return more samples than required
|
||||||
|
|
||||||
|
* wav/caf parser: add format checks
|
||||||
|
|
||||||
|
2022-07-13 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
|
* update ChangeLog [origin/master]
|
||||||
|
|
||||||
|
* bump [v1.0.3]
|
||||||
|
|
||||||
* wav/caf parser: ensure fmt/desc chunk
|
* wav/caf parser: ensure fmt/desc chunk
|
||||||
|
|
||||||
2021-11-15 nu774 <honeycomb77@gmail.com>
|
2021-11-15 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
* vcxproj: support Visual Studio 2022 [origin/master]
|
* vcxproj: support Visual Studio 2022
|
||||||
|
|
||||||
2021-04-23 nu774 <honeycomb77@gmail.com>
|
2021-04-23 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
|
@ -105,10 +105,14 @@ int caf_info(caf_reader_t *reader, int64_t chunk_size)
|
|||||||
{
|
{
|
||||||
char *buf, *key, *val, *end;
|
char *buf, *key, *val, *end;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
int n;
|
||||||
|
|
||||||
if (chunk_size < 4 || (buf = malloc(chunk_size)) == 0)
|
if (chunk_size < 4 || (buf = malloc(chunk_size+1)) == 0)
|
||||||
return -1;
|
return -1;
|
||||||
pcm_read(&reader->io, buf, chunk_size);
|
n = pcm_read(&reader->io, buf, chunk_size);
|
||||||
|
if (n != chunk_size)
|
||||||
|
return -1;
|
||||||
|
buf[n] = 0;
|
||||||
key = buf + 4;
|
key = buf + 4;
|
||||||
end = buf + chunk_size;
|
end = buf + chunk_size;
|
||||||
do {
|
do {
|
||||||
|
@ -60,6 +60,8 @@ int pcm_skip(pcm_io_context_t *io, int64_t count)
|
|||||||
|
|
||||||
if (count == 0 || pcm_seek(io, count, SEEK_CUR) >= 0)
|
if (count == 0 || pcm_seek(io, count, SEEK_CUR) >= 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
if (count < 0)
|
||||||
|
return -1;
|
||||||
do {
|
do {
|
||||||
if ((rc = vp->read(io->cookie, buff, count > 8192 ? 8192 : count)) > 0)
|
if ((rc = vp->read(io->cookie, buff, count > 8192 ? 8192 : count)) > 0)
|
||||||
count -= rc;
|
count -= rc;
|
||||||
|
Reference in New Issue
Block a user