ogg_afh.c: add documentation of struct ogg_datasource
[paraslash.git] / aac_afh.c
index 126eb6c..26cffa3 100644 (file)
--- a/aac_afh.c
+++ b/aac_afh.c
@@ -113,10 +113,9 @@ static int aac_get_file_info(char *map, size_t numbytes,
        NeAACDecHandle handle;
        unsigned char *umap = (unsigned char *) map;
 
-       ret = aac_find_esds(umap, numbytes, &skip);
+       ret = aac_find_esds(umap, numbytes, &skip, &decoder_len);
        if (ret < 0)
                goto out;
-       decoder_len = ret;
        handle = aac_open();
        ret = -E_AACDEC_INIT;
        if (NeAACDecInit(handle, umap + skip, decoder_len, &rate, &channels))