comparison aac_parser.c @ 6639:1980eba5fd0e libavcodec

remove AACAC3FrameFlag
author michael
date Fri, 18 Apr 2008 03:09:01 +0000
parents 5e7c69ebc019
children 866b9ade048c
comparison
equal deleted inserted replaced
6638:cdc496faff19 6639:1980eba5fd0e
25 #include "bitstream.h" 25 #include "bitstream.h"
26 #include "mpeg4audio.h" 26 #include "mpeg4audio.h"
27 27
28 #define AAC_HEADER_SIZE 7 28 #define AAC_HEADER_SIZE 7
29 29
30 static int aac_sync(AACAC3ParseContext *hdr_info, AACAC3FrameFlag *flag) 30 static int aac_sync(AACAC3ParseContext *hdr_info)
31 { 31 {
32 GetBitContext bits; 32 GetBitContext bits;
33 int size, rdb, ch, sr; 33 int size, rdb, ch, sr;
34 34
35 init_get_bits(&bits, hdr_info->inbuf, AAC_HEADER_SIZE * 8); 35 init_get_bits(&bits, hdr_info->inbuf, AAC_HEADER_SIZE * 8);
63 63
64 hdr_info->channels = ff_mpeg4audio_channels[ch]; 64 hdr_info->channels = ff_mpeg4audio_channels[ch];
65 hdr_info->sample_rate = ff_mpeg4audio_sample_rates[sr]; 65 hdr_info->sample_rate = ff_mpeg4audio_sample_rates[sr];
66 hdr_info->samples = (rdb + 1) * 1024; 66 hdr_info->samples = (rdb + 1) * 1024;
67 hdr_info->bit_rate = size * 8 * hdr_info->sample_rate / hdr_info->samples; 67 hdr_info->bit_rate = size * 8 * hdr_info->sample_rate / hdr_info->samples;
68 *flag = FRAME_COMPLETE;
69 68
70 return size; 69 return size;
71 } 70 }
72 71
73 static av_cold int aac_parse_init(AVCodecParserContext *s1) 72 static av_cold int aac_parse_init(AVCodecParserContext *s1)