Skip to content

Unable to read .AAC file in CheapAAC #20

@pari2dhi3

Description

@pari2dhi3

Hey,
I know its not actively maintained but i was trying the code to work for .aac file, But somehow the expected header and first 8 bits of stream does not match.
It throws an IOException of java.io.IOException("Unknown file format");
I am unable to enter this condition in CheapAAC class.
if (header[0] == 0 && header[4] == 'f' && header[5] == 't' && header[6] == 'y' && header[7] == 'p')
I have tried logging my header values and they are as follows :
header[0] : -1 header[1] : -7 header[2] : 80 header[3] : -128 header[4] : 28 header[5] : -65 header[6] : -4 header[7] : -125

I have no idea how the header should be for .AAC files, any guidance regarding this would be very helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions