diff options
Diffstat (limited to 'libavcodec/flac.h')
-rw-r--r-- | libavcodec/flac.h | 8 |
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 */ |