aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/flac.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-03-21 01:54:31 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-03-21 01:54:31 +0000
commit0fb2182d469d09623cf2ff0e4b786981f2fbafbe (patch)
tree31505ac79ed335fcb07d0de76aabccc5b1a4abea /libavcodec/flac.h
parentf5187c7f0488722852f41249b49353c9cc856981 (diff)
downloadffmpeg-0fb2182d469d09623cf2ff0e4b786981f2fbafbe.tar.gz
add a function to calculate a more accurate estimate for maximum FLAC
frame size and use the function in the FLAC decoder and FLAC encoder Originally committed as revision 18092 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flac.h')
-rw-r--r--libavcodec/flac.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/flac.h b/libavcodec/flac.h
index 1e44a3b394..2728905b79 100644
--- a/libavcodec/flac.h
+++ b/libavcodec/flac.h
@@ -103,4 +103,12 @@ int ff_flac_is_extradata_valid(AVCodecContext *avctx,
void ff_flac_parse_block_header(const uint8_t *block_header,
int *last, int *type, int *size);
+/**
+ * Calculate an estimate for the maximum frame size based on verbatim mode.
+ * @param blocksize block size, in samples
+ * @param ch number of channels
+ * @param bps bits-per-sample
+ */
+int ff_flac_get_max_frame_size(int blocksize, int ch, int bps);
+
#endif /* AVCODEC_FLAC_H */