summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartijn van Beurden <mvanb1@gmail.com>2022-04-13 10:49:03 +0200
committerMartijn van Beurden <mvanb1@gmail.com>2022-04-20 12:06:42 +0200
commit1ca7b38f3c174a95e391b4251eebfc98ca66fd17 (patch)
treef54ed95f797c4a489034ada1df7079cd161d66c8 /include
parent0077d3b697cb555d30f891f0bb181166efbcb145 (diff)
downloadflac-1ca7b38f3c174a95e391b4251eebfc98ca66fd17.tar.gz
Add FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATA
Diffstat (limited to 'include')
-rw-r--r--include/FLAC/stream_decoder.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/FLAC/stream_decoder.h b/include/FLAC/stream_decoder.h
index 50ebfa80..129cb4a6 100644
--- a/include/FLAC/stream_decoder.h
+++ b/include/FLAC/stream_decoder.h
@@ -422,7 +422,11 @@ extern FLAC_API const char * const FLAC__StreamDecoderWriteStatusString[];
* could be because the decoder encountered a valid frame made by a future
* version of the encoder which it cannot parse, or because of a false
* sync making it appear as though an encountered frame was generated by
- * a future encoder.
+ * a future encoder. \c FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATA is
+ * caused by finding data that doesn't fit a metadata block (too large
+ * or too small) or finding inconsistencies in the metadata, for example
+ * a PICTURE block with an image that exceeds the size of the metadata
+ * block.
*/
typedef enum {
@@ -435,9 +439,12 @@ typedef enum {
FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH,
/**< The frame's data did not match the CRC in the footer. */
- FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM
+ FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM,
/**< The decoder encountered reserved fields in use in the stream. */
+ FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATA
+ /**< The decoder encountered a corrupted metadata block. */
+
} FLAC__StreamDecoderErrorStatus;
/** Maps a FLAC__StreamDecoderErrorStatus to a C string.