| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes a cppcheck warning. Possibly we should just convert
the array type to `long` since that's what oggpack_look()
returns, using negative values to report error.
However, none of the compared values are out of range
for either type so it doesn't really matter.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Signed-off-by: Ralph Giles <giles@thaumas.net>
|
|
|
|
|
| |
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Signed-off-by: Ralph Giles <giles@thaumas.net>
|
|
|
|
|
|
| |
Suggested-By Mark Harris
Fixes #2297
|
|
|
|
|
|
| |
Found via `codespell -q 3`
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Subversion, like cvs, had a mechanism for replacing inline template
text on checkout for representing things like 'last modified date'.
Git does not support this, so remove the template strings from
file header comments.
Also less aggressive language is os_types.h.
|
|
|
|
| |
Useful for fuzzing
|
|
|
|
|
|
|
|
|
|
|
| |
On 64-bit Windows, sizeof(unsigned char *) is 8, sizeof(long) is 4 and
alignof(ogg_int64_t) is 8. This results in a 4-byte hole in ogg_packet
after "long e_o_s", which means ogg_packet structs cannot be reliably
compared by memcmp. Compare ogg_packet structs member-by-member instead.
This fixes `make check` for me on mingw-w64/GCC.
Signed-off-by: Ralph Giles <giles@thaumas.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A false continued packet occurs if the previous page ended at the
end of a packet, with no sequence number gap and no continued data
on that page, while the current page has the continued packet flag
set.
Previously, if you drained all of the buffered packet data by
repeatedly calling ogg_stream_packetout() after submitting the
previous page but before submitting the current page, libogg would
discard the continued data at the beggining of the current page.
However, if you left the previous page's data in the buffer, then
libogg would happily return the continued data at the start of the
current page as a separate packet when you eventually did call
ogg_stream_packetout().
This patch makes libogg consistently discard this data.
|
|
|
|
| |
Newer versions prefer AM_CPPFLAGS to INCLUDES.
|
|
|
|
| |
svn path=/trunk/ogg/; revision=19149
|
|
|
|
|
|
| |
dest_bytes is a long here, so we should use %ld instead of %d.
svn path=/trunk/ogg/; revision=19147
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
overflow checking in oggpack_writecopy_helper got the reallocation
size test condition backwards and so would error out when it needed to
expand the destination's internal buffer.
At the same time, do preexpansion of both aligned and unaligned copies
to avoid possible heap thrashing in the unaligned case.
Add black and glass box unit tests for oggpack_writecopy and
oggpackB_writecopy.
svn path=/trunk/ogg/; revision=19119
|
|
|
|
|
|
|
| |
Their size could overflow a long (especially on, e.g., Win64, where
they could still fit in memory).
svn path=/trunk/ogg/; revision=18758
|
|
|
|
| |
svn path=/trunk/ogg/; revision=18052
|
|
|
|
|
|
| |
Remove trailing whitespace and re-indent some comments.
svn path=/trunk/ogg/; revision=18051
|
|
|
|
|
|
| |
ogg_stream_flush will produce multiple pages when >4096 bytes and >4 packets are available.
svn path=/trunk/ogg/; revision=18044
|
|
|
|
|
|
|
| |
4
svn path=/trunk/ogg/; revision=17592
|
|
|
|
| |
svn path=/trunk/ogg/; revision=17579
|
|
|
|
| |
svn path=/trunk/ogg/; revision=17571
|
|
|
|
|
|
|
|
| |
extension, which is not supported by MSVC.
We don't actually need that generality, though, so revert to simply using
LONG_MAX instead.
svn path=/trunk/ogg/; revision=17287
|
|
|
|
|
|
|
|
|
|
|
| |
GCC optimizes out the overflow check due to the overflow check reyling on overflow;
reimplement using type-based TYPE_MAX macro
Correct an accidental assignment-during-check that wasn't a bug, but was
semantically incorrect and rightly triggered a compilation warning.
svn path=/trunk/ogg/; revision=17270
|
|
|
|
|
|
|
| |
mathing the ogg_packet declaration.
svn path=/trunk/ogg/; revision=17269
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
if(b->endbyte*8+bits>b->storage*8)goto overflow;
Eliminate the possibility of b->endbyte overflow on buffer storage near or
exactly at long storage limit; corrections made to both read and write.
Also, harden both read and write against requesting <0 or >32 read/write. In both
case, the packer is put into 'error' state.
svn path=/trunk/ogg/; revision=17268
|
|
|
|
| |
svn path=/trunk/ogg/; revision=17124
|
|
|
|
|
|
| |
delay sensitive flushing to produce big pages. Increase the default minimum fill amount to 8 based on latency measurements with actual files. These changes may be controversial but since we've recently had a release I thought there would be no harm in getting them into the repository for discussion.
svn path=/trunk/ogg/; revision=17098
|
|
|
|
|
|
|
|
|
|
| |
The oggpack_* calls expect an unsigned char *, but the self-test
code for convenience uses string literals for some of the test
vectors. This generates a warning on gcc and clang, at least.
We silence the warning by casting the literals to (unsigned char *).
svn path=/trunk/ogg/; revision=17063
|
|
|
|
|
|
| |
Warnings reported by clang (the llvm C compiler).
svn path=/trunk/ogg/; revision=17060
|
|
|
|
| |
svn path=/trunk/ogg/; revision=17039
|
|
|
|
|
|
|
|
|
|
| |
1) Don't unneccessarily span pages.
2) Unless necessary, don't flush pages if there are less than four packets on
them; this expands page size to reduce unneccessary overhead if incoming
packets are large.
svn path=/trunk/ogg/; revision=16993
|
|
|
|
| |
svn path=/trunk/ogg/; revision=16051
|
|
|
|
|
|
|
|
|
| |
makes it safe to ignore most return codes in applications and simply
check occasionally to see if something went wrong at some earlier
point.
svn path=/trunk/ogg/; revision=16047
|
|
|
|
|
|
|
| |
stack overflow.
svn path=/trunk/ogg/; revision=16022
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
so much, autofoo)
Update ogg to check the return of all allocs for those on embedded
platforms with guarantees non-ovecommit. Be aware that these checks
are useless on any modern desktop OS, but that embedded folks with no
MMU and a hard heap boundary will benefit.
Add one new call to bitpacker that will query a write-mode
oggpack_buffer to see if it ran out of memory at some point; there was
no other way to add the error reporting in an ABI-compatible manner
(and it also allows the writepacker to avoid extra checks; it will
just keep going after running out of memory without faulting and state
can be queried later).
svn path=/trunk/ogg/; revision=16016
|
|
|
|
|
|
| |
tests under Wine.
svn path=/trunk/ogg/; revision=14725
|
|
|
|
| |
svn path=/trunk/ogg/; revision=14546
|
|
|
|
| |
svn path=/trunk/ogg/; revision=14463
|
|
|
|
|
|
|
| |
review.
svn path=/trunk/ogg/; revision=12446
|
|
|
|
|
|
| |
completion summary.
svn path=/trunk/ogg/; revision=12044
|
|
|
|
| |
svn path=/trunk/ogg/; revision=10757
|
|
|
|
|
|
|
|
|
|
|
|
| |
no packet ends. The spec is clear about this but the unit tests assumed
the old behaviour (carry over the previous granulepos) was correct.
I did not verify the new CRC values by hand however, they are just copied
from the library output.
Also update changelog for the bug fix.
svn path=/trunk/ogg/; revision=9601
|
|
|
|
|
|
|
|
|
| |
packets ending on it (which commonly happens with video keyframes, for
instance) must have a granulepos of -1.
libogg never implemented this correctly; this patch ensures it does.
svn path=/trunk/ogg/; revision=9598
|
|
|
|
| |
svn path=/trunk/ogg/; revision=9371
|
|
|
|
|
|
| |
tests.
svn path=/trunk/ogg/; revision=7835
|
|
|
|
| |
svn path=/trunk/ogg/; revision=7824
|
|
|
|
| |
svn path=/trunk/ogg/; revision=7675
|
|
|
|
|
|
| |
leak-checking environments
svn path=/trunk/ogg/; revision=7586
|
|
|
|
|
|
|
| |
(patch from Colin Ward)
+ tested on linux/gcc
svn path=/trunk/ogg/; revision=7525
|
|
|
|
|
|
|
|
|
|
|
| |
* clean up AC_OUTPUT
* AUTOMAKE_OPTIONS = foreign only needs to be done toplevel
(this can be verified by checking Makefile's generated in other directories
and seeing that the var isn't used)
svn path=/trunk/ogg/; revision=6990
|
|
|
|
|
|
|
|
| |
exposed by 64 bit systems; the 32 bit mask is signed default and being
sign-extended by 64 bit.
svn path=/trunk/ogg/; revision=6832
|