comparison aac_parser.c @ 8819:b6e7247d3f0e libavcodec

Correctly map ADTS profile_ObjectType to MPEG-4 AOT Patch by Alex Converse ( alex converse gmail com )
author superdump
date Fri, 13 Feb 2009 00:08:15 +0000
parents 04423b2f6e0b
children 2c23106a79eb
comparison
equal deleted inserted replaced
8818:17cc6df384a6 8819:b6e7247d3f0e
60 return AAC_AC3_PARSE_ERROR_FRAME_SIZE; 60 return AAC_AC3_PARSE_ERROR_FRAME_SIZE;
61 61
62 skip_bits(gbc, 11); /* adts_buffer_fullness */ 62 skip_bits(gbc, 11); /* adts_buffer_fullness */
63 rdb = get_bits(gbc, 2); /* number_of_raw_data_blocks_in_frame */ 63 rdb = get_bits(gbc, 2); /* number_of_raw_data_blocks_in_frame */
64 64
65 hdr->object_type = aot; 65 hdr->object_type = aot + 1;
66 hdr->chan_config = ch; 66 hdr->chan_config = ch;
67 hdr->crc_absent = crc_abs; 67 hdr->crc_absent = crc_abs;
68 hdr->num_aac_frames = rdb + 1; 68 hdr->num_aac_frames = rdb + 1;
69 hdr->sampling_index = sr; 69 hdr->sampling_index = sr;
70 hdr->sample_rate = ff_mpeg4audio_sample_rates[sr]; 70 hdr->sample_rate = ff_mpeg4audio_sample_rates[sr];