X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=aac_common.c;fp=aac_common.c;h=43e56000c4c4c1fab3746153dbb06a28a498f91d;hp=b3463b25284f62bc2cffbe74c501755864965e38;hb=f2fa810c4bac275b4dc3ea9cd8b48d77e204618d;hpb=bfbc3f075056b468dfdb525d8a623fe50a20117a diff --git a/aac_common.c b/aac_common.c index b3463b25..43e56000 100644 --- a/aac_common.c +++ b/aac_common.c @@ -26,6 +26,10 @@ #include "aac.h" #include "error.h" +/** + * get a new libfaad decoder handle + * + */ NeAACDecHandle aac_open(void) { NeAACDecHandle h = NeAACDecOpen(); @@ -97,6 +101,17 @@ unsigned aac_read_int32(unsigned char *buf) return (d[0] << 24) | (d[1] << 16) | (d[2] << 8) | d[3]; } +/** + * search for the first entry in the stco table + * + * \param buf buffer to seach + * \param buflen length of \a buf + * \param skip Upon succesful return, this contains the number + * of bytes to skip from the input buffer. + * + * \return the position of the first entry in the table on success, + * -E_STCO on errors. + */ int aac_find_entry_point(unsigned char *buf, unsigned buflen, int *skip) {