Mercurial > libavcodec.hg
diff ac3_parser.h @ 6661:a409fbf1f42b libavcodec
change ff_ac3_parse_header() to take a GetBitContext instead of const char*
author | bwolowiec |
---|---|
date | Tue, 22 Apr 2008 11:14:01 +0000 |
parents | b0d44aec1ec0 |
children | 2d0b86dfe5bb |
line wrap: on
line diff
--- a/ac3_parser.h Tue Apr 22 09:16:05 2008 +0000 +++ b/ac3_parser.h Tue Apr 22 11:14:01 2008 +0000 @@ -24,6 +24,7 @@ #define FFMPEG_AC3_PARSER_H #include "ac3.h" +#include "bitstream.h" typedef enum { AC3_PARSE_ERROR_SYNC = -1, @@ -37,12 +38,12 @@ * Parses AC-3 frame header. * Parses the header up to the lfeon element, which is the first 52 or 54 bits * depending on the audio coding mode. - * @param buf[in] Array containing the first 7 bytes of the frame. + * @param gbc[in] BitContext containing the first 54 bits of the frame. * @param hdr[out] Pointer to struct where header info is written. * @return Returns 0 on success, -1 if there is a sync word mismatch, * -2 if the bsid (version) element is invalid, -3 if the fscod (sample rate) * element is invalid, or -4 if the frmsizecod (bit rate) element is invalid. */ -int ff_ac3_parse_header(const uint8_t buf[7], AC3HeaderInfo *hdr); +int ff_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr); #endif /* FFMPEG_AC3_PARSER_H */