Revision 55736cfb libavcodec/ac3_parser.h

View differences:

libavcodec/ac3_parser.h
24 24
#define FFMPEG_AC3_PARSER_H
25 25

  
26 26
#include "ac3.h"
27
#include "bitstream.h"
27 28

  
28 29
typedef enum {
29 30
    AC3_PARSE_ERROR_SYNC        = -1,
......
37 38
 * Parses AC-3 frame header.
38 39
 * Parses the header up to the lfeon element, which is the first 52 or 54 bits
39 40
 * depending on the audio coding mode.
40
 * @param buf[in] Array containing the first 7 bytes of the frame.
41
 * @param gbc[in] BitContext containing the first 54 bits of the frame.
41 42
 * @param hdr[out] Pointer to struct where header info is written.
42 43
 * @return Returns 0 on success, -1 if there is a sync word mismatch,
43 44
 * -2 if the bsid (version) element is invalid, -3 if the fscod (sample rate)
44 45
 * element is invalid, or -4 if the frmsizecod (bit rate) element is invalid.
45 46
 */
46
int ff_ac3_parse_header(const uint8_t buf[7], AC3HeaderInfo *hdr);
47
int ff_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr);
47 48

  
48 49
#endif /* FFMPEG_AC3_PARSER_H */

Also available in: Unified diff