diff flac.h @ 6729:071888974d8a libavcodec

share streaminfo parsing function
author jbr
date Fri, 02 May 2008 21:34:34 +0000
parents 56c5bbd0996f
children dc4f5c55af40
line wrap: on
line diff
--- a/flac.h	Fri May 02 21:33:14 2008 +0000
+++ b/flac.h	Fri May 02 21:34:34 2008 +0000
@@ -39,4 +39,17 @@
     int channels;           /**< number of channels                      */\
     int bps;                /**< bits-per-sample                         */\
 
+typedef struct FLACStreaminfo {
+    FLACSTREAMINFO
+} FLACStreaminfo;
+
+/**
+ * Parse the Streaminfo metadata block
+ * @param[out] avctx   codec context to set basic stream parameters
+ * @param[out] s       where parsed information is stored
+ * @param[in]  buffer  pointer to start of 34-byte streaminfo data
+ */
+void ff_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s,
+                              const uint8_t *buffer);
+
 #endif /* FFMPEG_FLAC_H */