Mercurial > libavcodec.hg
comparison ac3_parser.h @ 6671:2d0b86dfe5bb libavcodec
add a ff_ac3_parse_header_full() which calls ff_ac3_parse_header()
and then reads the channel_map stuff
author | bwolowiec |
---|---|
date | Thu, 24 Apr 2008 22:27:13 +0000 |
parents | a409fbf1f42b |
children | 4c1b8b50313c |
comparison
equal
deleted
inserted
replaced
6670:33d3c14d5a57 | 6671:2d0b86dfe5bb |
---|---|
44 * -2 if the bsid (version) element is invalid, -3 if the fscod (sample rate) | 44 * -2 if the bsid (version) element is invalid, -3 if the fscod (sample rate) |
45 * element is invalid, or -4 if the frmsizecod (bit rate) element is invalid. | 45 * element is invalid, or -4 if the frmsizecod (bit rate) element is invalid. |
46 */ | 46 */ |
47 int ff_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr); | 47 int ff_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr); |
48 | 48 |
49 /** | |
50 * Parses AC-3 frame header and sets channel_map | |
51 * Parses the header up to the lfeon (channel_map in E-AC-3) | |
52 * element, which is the first 52, 54 or 104 bits depending | |
53 * on the audio coding mode. | |
54 * @param gbc[in] BitContext containing the first 54 bits of the frame. | |
55 * @param hdr[out] Pointer to struct where header info is written. | |
56 * @return value returned by ff_ac3_parse_header | |
57 */ | |
58 int ff_ac3_parse_header_full(GetBitContext *gbc, AC3HeaderInfo *hdr); | |
59 | |
49 #endif /* FFMPEG_AC3_PARSER_H */ | 60 #endif /* FFMPEG_AC3_PARSER_H */ |