aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/flac.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-03-06 01:25:11 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-03-06 01:25:11 +0000
commit5b63d33d7d178cdf4581b946a4f758695f2123f9 (patch)
tree98ddd86f9636ebc1ebd433ed5c793d592e0b0ffc /libavcodec/flac.h
parente0c98063e7cd4d140c05f150d72e7f76374a2a58 (diff)
downloadffmpeg-5b63d33d7d178cdf4581b946a4f758695f2123f9.tar.gz
flacdec: Add a shared function for parsing a FLAC metadata block header.
Originally committed as revision 17851 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flac.h')
-rw-r--r--libavcodec/flac.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/flac.h b/libavcodec/flac.h
index 5d20c0b974..c93d98e144 100644
--- a/libavcodec/flac.h
+++ b/libavcodec/flac.h
@@ -83,4 +83,14 @@ int ff_flac_is_extradata_valid(AVCodecContext *avctx,
enum FLACExtradataFormat *format,
uint8_t **streaminfo_start);
+/**
+ * Parse the metadata block parameters from the header.
+ * @param[in] block_header header data, at least 4 bytes
+ * @param[out] last indicator for last metadata block
+ * @param[out] type metadata block type
+ * @param[out] size metadata block size
+ */
+void ff_flac_parse_block_header(const uint8_t *block_header,
+ int *last, int *type, int *size);
+
#endif /* AVCODEC_FLAC_H */