History log of /haiku/src/add-ons/media/plugins/au_reader/au_reader.cpp
Revision Date Author Comments
# 425ac1b6 20-Jun-2023 Alexander von Gluck IV <kallisti5@unixzen.com>

refactor: Swap %Ld for %lld in all format usages

* %Ld is an undocumented alias for %lld in glibc.
* muslc doesn't implement it for this reason.
* While we will likely never drop %Ld support,
lets clean house and set a better example.

Change-Id: Id46dad3104abae483e80cc5c05d1464d3ecd8030
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6636
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# a4436289 21-Dec-2022 PulkoMandy <pulkomandy@pulkomandy.tk>

media plugins: replace strcpy with strlcpy

Fixes a memory corruption: the ffmpeg plugin has a LOT of file
extensions, which goes way past the 8 allowed characters and even past
the 88 reserved bytes at the end of the structure. As a result, memory
after the structure is overwritten, resulting in heap corruption and
crashes.

This is immediately detected by using the guarded heap.

As a short term measure, use strlcpy to avoid overwriting memory, but
now the ffmpeg plugin will be unable to provide any useful info. It
would make sense to make media_format_info store a pointer to a string
instead (similar to entry_ref), but this requires more changes and will
create some incompatibility with existing apps if they use the field.

Change-Id: I8d2b567a179e9f7816b72f48aedac4e8534bc044


# 89fa6527 07-Oct-2008 François Revol <revol@free.fr>

- some cleanup
- fixed dbg output
- a priori .au can contain raw audio...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27906 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0d1adad3 29-Jun-2005 Marcus Overhagen <marcusoverhagen@gmail.com>

Media Codec API just got a visit from the coding style police.
We now use "const" for the chunk buffer pointer returned by GetNextChunk,
because the buffer is not supposed to be modified by the codec.
size_t is used for the size where applicable. This matches BMediaDecoder.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13361 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a7871de2 25-Dec-2004 beveloper <beveloper@nowhere.fake>

Flushing local repository changes to server. Mostly new copyright headers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10534 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5524db59 13-Feb-2004 beveloper <beveloper@nowhere.fake>

fixed duration calculation for compressed data. The three .au test file with muLaw compression that I have play ok now


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6588 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bb1d6ef2 27-Dec-2003 beveloper <beveloper@nowhere.fake>

raw decoder supports many samples types now, and support for them
has been added to the file readers, you can now play 24 bit integer
or 64 bit floating point files


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5770 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 91e76129 23-Dec-2003 beveloper <beveloper@nowhere.fake>

bugfix


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5741 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a665f2f9 22-Dec-2003 beveloper <beveloper@nowhere.fake>

a few checks and fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5735 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 228c585f 22-Dec-2003 beveloper <beveloper@nowhere.fake>

added added au (Sun audio file) format reader


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5734 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 89fa6527e83b6729fe50c504da84dbd5d3996497 07-Oct-2008 François Revol <revol@free.fr>

- some cleanup
- fixed dbg output
- a priori .au can contain raw audio...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27906 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0d1adad317d12e39380ee4876ca4b36fd7814901 29-Jun-2005 Marcus Overhagen <marcusoverhagen@gmail.com>

Media Codec API just got a visit from the coding style police.
We now use "const" for the chunk buffer pointer returned by GetNextChunk,
because the buffer is not supposed to be modified by the codec.
size_t is used for the size where applicable. This matches BMediaDecoder.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13361 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a7871de2865df2fb1e5b299a91c0711545fa7d48 25-Dec-2004 beveloper <beveloper@nowhere.fake>

Flushing local repository changes to server. Mostly new copyright headers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10534 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5524db596f14ee7c75b181cd87c0db5f5de57dea 13-Feb-2004 beveloper <beveloper@nowhere.fake>

fixed duration calculation for compressed data. The three .au test file with muLaw compression that I have play ok now


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6588 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bb1d6ef24727b9ee47843143658cd807f290e90c 27-Dec-2003 beveloper <beveloper@nowhere.fake>

raw decoder supports many samples types now, and support for them
has been added to the file readers, you can now play 24 bit integer
or 64 bit floating point files


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5770 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 91e76129e7262e0be0c222272d94eef77202b80e 23-Dec-2003 beveloper <beveloper@nowhere.fake>

bugfix


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5741 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a665f2f9e1875b1620f99864fd830228cd1aeaf9 22-Dec-2003 beveloper <beveloper@nowhere.fake>

a few checks and fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5735 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 228c585f821e8e09c25518a08c465fc93054011d 22-Dec-2003 beveloper <beveloper@nowhere.fake>

added added au (Sun audio file) format reader


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5734 a95241bf-73f2-0310-859d-f6bbb57e9c96