From 9482171bbd18fec6953e03e20681b08759a9f854 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Fri, 2 May 2008 21:34:34 +0000 Subject: share streaminfo parsing function Originally committed as revision 13036 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/flac.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libavcodec/flac.h') diff --git a/libavcodec/flac.h b/libavcodec/flac.h index e7a8440b12..da39456dcf 100644 --- a/libavcodec/flac.h +++ b/libavcodec/flac.h @@ -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 */ -- cgit v1.2.3