summaryrefslogtreecommitdiff
path: root/libavcodec/ac3_parser.h
diff options
context:
space:
mode:
authorBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-04-22 11:14:01 +0000
committerBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-04-22 11:14:01 +0000
commit55736cfbd22e0a7c10a85eb0d5cc7a22bf841322 (patch)
tree7932cad0cfa77d10edbb6f526eec5cd81cb41c80 /libavcodec/ac3_parser.h
parent0ec1eb6906619e60b9862d7bea1438e2511f61f0 (diff)
change ff_ac3_parse_header() to take a GetBitContext instead of const char*
Originally committed as revision 12922 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3_parser.h')
-rw-r--r--libavcodec/ac3_parser.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/ac3_parser.h b/libavcodec/ac3_parser.h
index 1e512bf2b6..3f19b13dd7 100644
--- a/libavcodec/ac3_parser.h
+++ b/libavcodec/ac3_parser.h
@@ -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 @@ typedef enum {
* 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 */