static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info,

        int *need_next_header, int *new_frame_start)

{

    GetBitContext bits;

    AACADTSHeaderInfo hdr;

    int size;

    union {

        uint64_t u64;

        uint8_t  u8[8];

    } tmp;



    tmp.u64 = av_be2ne64(state);

    init_get_bits(&bits, tmp.u8+8-AAC_ADTS_HEADER_SIZE, AAC_ADTS_HEADER_SIZE * 8);



    if ((size = avpriv_aac_parse_header(&bits, &hdr)) < 0)

        return 0;

    *need_next_header = 0;

    *new_frame_start  = 1;

    hdr_info->sample_rate = hdr.sample_rate;

    hdr_info->channels    = ff_mpeg4audio_channels[hdr.chan_config];

    hdr_info->samples     = hdr.samples;

    hdr_info->bit_rate    = hdr.bit_rate;

    return size;

}

static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info,

        int *need_next_header, int *new_frame_start)

{

    GetBitContext bits;

    AACADTSHeaderInfo hdr;

    int size;

    union {

        uint64_t u64;

        uint8_t  u8[8];

    } tmp;



    tmp.u64 = av_be2ne64(state);

    init_get_bits(&bits, tmp.u8+8-AAC_ADTS_HEADER_SIZE, AAC_ADTS_HEADER_SIZE * 8);



    if ((size = avpriv_aac_parse_header(&bits, &hdr)) < 0)

        return 0;

    *need_next_header = 0;

    *new_frame_start  = 1;

    hdr_info->sample_rate = hdr.sample_rate;

    hdr_info->channels    = ff_mpeg4audio_channels[hdr.chan_config];

    hdr_info->samples     = hdr.samples;

    hdr_info->bit_rate    = hdr.bit_rate;

    return size;

}

        uint8_t  u8[8];
static int FUNC_0(uint64_t VAR_0, AACAC3ParseContext *VAR_1,

        int *VAR_2, int *VAR_3)

{

    GetBitContext bits;

    AACADTSHeaderInfo hdr;

    int VAR_4;

    union {

        uint64_t u64;

        uint8_t  u8[8];

    } VAR_5;



    VAR_5.u64 = av_be2ne64(VAR_0);

    init_get_bits(&bits, VAR_5.u8+8-AAC_ADTS_HEADER_SIZE, AAC_ADTS_HEADER_SIZE * 8);



    if ((VAR_4 = avpriv_aac_parse_header(&bits, &hdr)) < 0)

        return 0;

    *VAR_2 = 0;

    *VAR_3  = 1;

    VAR_1->sample_rate = hdr.sample_rate;

    VAR_1->channels    = ff_mpeg4audio_channels[hdr.chan_config];

    VAR_1->samples     = hdr.samples;

    VAR_1->bit_rate    = hdr.bit_rate;

    return VAR_4;

}

static int FUNC_0(uint64_t VAR_0, AACAC3ParseContext *VAR_1,
int *VAR_2, int *VAR_3)
{ GetBitContext bits; AACADTSHeaderInfo hdr; int VAR_4; union { uint64_t u64; uint8_t  u8[8]; } VAR_5; VAR_5.u64 = av_be2ne64(VAR_0); init_get_bits(&bits, VAR_5.u8+8-AAC_ADTS_HEADER_SIZE, AAC_ADTS_HEADER_SIZE * 8); if ((VAR_4 = avpriv_aac_parse_header(&bits, &hdr)) < 0)
return 0; *VAR_2 = 0; *VAR_3  = 1; VAR_1->sample_rate = hdr.sample_rate; VAR_1->channels    = ff_mpeg4audio_channels[hdr.chan_config]; VAR_1->samples     = hdr.samples; VAR_1->bit_rate    = hdr.bit_rate; return VAR_4; }