From 6567c59c4903194eeaf822aeb88b7b8dbda1354b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 3 Dec 2016 23:39:11 +0100 Subject: avcodec/flac: forward errors from ff_flac_parse_streaminfo() Signed-off-by: Michael Niedermayer --- libavcodec/flac.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavcodec/flac.h') diff --git a/libavcodec/flac.h b/libavcodec/flac.h index 96d971c9d7..991ab43f3c 100644 --- a/libavcodec/flac.h +++ b/libavcodec/flac.h @@ -95,8 +95,10 @@ typedef struct FLACFrameInfo { * @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 + * + * @return negative error code on faiure or >= 0 on success */ -void ff_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s, +int ff_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s, const uint8_t *buffer); /** -- cgit v1.2.3