]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/flac.h
wmavoice: move overflow handling to common code.
[ffmpeg] / libavcodec / flac.h
index 96d971c9d7efe9064a80377f76e6e45cbbfc98fa..991ab43f3cc37ccd38142045a8e3fac2f52e6507 100644 (file)
@@ -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);
 
 /**