Revision be1e2a2b libavcodec/aac_parser.c

View differences:

libavcodec/aac_parser.c
23 23
#include "parser.h"
24 24
#include "aac_ac3_parser.h"
25 25
#include "bitstream.h"
26
#include "ac3.h"
27 26

  
28 27

  
29 28
#define AAC_HEADER_SIZE 7
......
39 38
};
40 39

  
41 40

  
42
static int aac_sync(AACAC3ParseContext *hdr_info)
41
static int aac_sync(AACAC3ParseContext *hdr_info, AACAC3FrameFlag *flag)
43 42
{
44 43
    GetBitContext bits;
45 44
    int size, rdb, ch, sr;
......
77 76
    hdr_info->sample_rate = aac_sample_rates[sr];
78 77
    hdr_info->samples = (rdb + 1) * 1024;
79 78
    hdr_info->bit_rate = size * 8 * hdr_info->sample_rate / hdr_info->samples;
79
    *flag = FRAME_COMPLETE;
80 80

  
81 81
    return size;
82 82
}
......
84 84
static av_cold int aac_parse_init(AVCodecParserContext *s1)
85 85
{
86 86
    AACAC3ParseContext *s = s1->priv_data;
87
    s->stream_type = EAC3_STREAM_TYPE_INDEPENDENT;
88 87
    s->inbuf_ptr = s->inbuf;
89 88
    s->header_size = AAC_HEADER_SIZE;
90 89
    s->sync = aac_sync;

Also available in: Unified diff