aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/flac.h
diff options
context:
space:
mode:
authorMichael Niedermayer2016-12-03 23:39:11 +0100
committerMichael Niedermayer2016-12-03 23:39:11 +0100
commit6567c59c4903194eeaf822aeb88b7b8dbda1354b (patch)
tree73728b93ca4513ca0b8bf824d21b1b3f8cdad2e2 /libavcodec/flac.h
parent020d53ebdb581ea5a493239537cb0f5cc54809e9 (diff)
avcodec/flac: forward errors from ff_flac_parse_streaminfo()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/flac.h')
-rw-r--r--libavcodec/flac.h4
1 files changed, 3 insertions, 1 deletions
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);
/**