diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2008-05-02 21:34:34 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2008-05-02 21:34:34 +0000 |
commit | 9482171bbd18fec6953e03e20681b08759a9f854 (patch) | |
tree | 7255c642c8bc7e417c6225e223faaa472d439e17 /libavcodec/flac.h | |
parent | 9d48410f142290dfe6d4823656f2f208f4b06287 (diff) | |
download | ffmpeg-9482171bbd18fec6953e03e20681b08759a9f854.tar.gz |
share streaminfo parsing function
Originally committed as revision 13036 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flac.h')
-rw-r--r-- | libavcodec/flac.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 */ |