summaryrefslogtreecommitdiff
path: root/libavcodec/ac3_parser.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-01 01:47:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-01 01:51:01 +0100
commiteadc21cfe74fc112dbdbe91e6988bdeae175b861 (patch)
treeb89dcffecd94bb61fda0f38051b352a183d831d8 /libavcodec/ac3_parser.h
parentdf6d21c1e7d347b533b78f0b0ff72bb52e104b73 (diff)
avcodec/ac3_parser: add avpriv_ac3_parse_header2() and use it in libavcodec
The new function has the ability to allocate the structure, allowing it to grow without needing major bumps Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ac3_parser.h')
-rw-r--r--libavcodec/ac3_parser.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/ac3_parser.h b/libavcodec/ac3_parser.h
index b5022de2d8..f37387d76c 100644
--- a/libavcodec/ac3_parser.h
+++ b/libavcodec/ac3_parser.h
@@ -31,11 +31,14 @@
* Parse the header up to the lfeon element, which is the first 52 or 54 bits
* depending on the audio coding mode.
* @param[in] gbc BitContext containing the first 54 bits of the frame.
- * @param[out] hdr Pointer to struct where header info is written.
+ * @param[out] hdr Pointer to Pointer to struct where header info is written.
+ * will be allocated if NULL
* @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 avpriv_ac3_parse_header2(GetBitContext *gbc, AC3HeaderInfo **hdr);
+
int avpriv_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr);
#endif /* AVCODEC_AC3_PARSER_H */