diff options
author | Bartlomiej Wolowiec <bartek.wolowiec@gmail.com> | 2008-04-22 11:14:01 +0000 |
---|---|---|
committer | Bartlomiej Wolowiec <bartek.wolowiec@gmail.com> | 2008-04-22 11:14:01 +0000 |
commit | 55736cfbd22e0a7c10a85eb0d5cc7a22bf841322 (patch) | |
tree | 7932cad0cfa77d10edbb6f526eec5cd81cb41c80 /libavcodec/ac3_parser.h | |
parent | 0ec1eb6906619e60b9862d7bea1438e2511f61f0 (diff) | |
download | ffmpeg-55736cfbd22e0a7c10a85eb0d5cc7a22bf841322.tar.gz |
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.h | 5 |
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 */ |