]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ac3_parser.h
avcodec/ac3_parser: add avpriv_ac3_parse_header2() and use it in libavcodec
[ffmpeg] / libavcodec / ac3_parser.h
index b5022de2d88ff3bf8b654abd0ff0f32edea547a6..f37387d76c2cbd266ce8b874c0595f3789f0d5db 100644 (file)
  * 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 */