Mercurial > libavcodec.hg
comparison ac3_parser.c @ 7018:885cad616170 libavcodec
add more gain levels and adjust mix level tables accordingly.
author | jbr |
---|---|
date | Sat, 07 Jun 2008 22:30:03 +0000 |
parents | b514562e0aef |
children | 81d5c68233e5 |
comparison
equal
deleted
inserted
replaced
7017:60fd9ae9540e | 7018:885cad616170 |
---|---|
35 | 35 |
36 /** | 36 /** |
37 * Table for center mix levels | 37 * Table for center mix levels |
38 * reference: Section 5.4.2.4 cmixlev | 38 * reference: Section 5.4.2.4 cmixlev |
39 */ | 39 */ |
40 static const uint8_t center_levels[4] = { 2, 3, 4, 3 }; | 40 static const uint8_t center_levels[4] = { 4, 5, 6, 5 }; |
41 | 41 |
42 /** | 42 /** |
43 * Table for surround mix levels | 43 * Table for surround mix levels |
44 * reference: Section 5.4.2.5 surmixlev | 44 * reference: Section 5.4.2.5 surmixlev |
45 */ | 45 */ |
46 static const uint8_t surround_levels[4] = { 2, 4, 0, 4 }; | 46 static const uint8_t surround_levels[4] = { 4, 6, 7, 6 }; |
47 | 47 |
48 | 48 |
49 int ff_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr) | 49 int ff_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr) |
50 { | 50 { |
51 int frame_size_code; | 51 int frame_size_code; |