[Flac-dev] application metadata block length
Josh Coalson
xflac at yahoo.com
Wed Jan 15 12:23:34 PST 2003
--- Josh Haberman <joshua at haberman.com> wrote:
> It would be nice if there was an accessor function that would give
> you
> the length of an application block's data. As it stands, there's no
> way
> for an application to ensure that it doesn't read past the end of the
> data buffer, causing it to either segfault or get bad data.
The data length is inferred from the block length, i.e. the
size of object->data.application.data is object->length - 4
(4 is the size of the application id).
Josh
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
More information about the Flac-dev
mailing list