]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - aac_common.c
aac: error cleanup
[paraslash.git] / aac_common.c
index b3463b25284f62bc2cffbe74c501755864965e38..43e56000c4c4c1fab3746153dbb06a28a498f91d 100644 (file)
 #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)
 {