From 90c6416591d6dd4546087f7245e6b23c1e5c89b6 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Fri, 15 Nov 2002 05:43:16 +0000 Subject: [PATCH] fail ..._init() if CUESHEET metadata block is illegal --- include/FLAC/stream_encoder.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/FLAC/stream_encoder.h b/include/FLAC/stream_encoder.h index cd55146..df0afbb 100644 --- a/include/FLAC/stream_encoder.h +++ b/include/FLAC/stream_encoder.h @@ -232,6 +232,8 @@ typedef enum { FLAC__STREAM_ENCODER_INVALID_METADATA, /**< The metadata input to the encoder is invalid, in one of the following ways: * - FLAC__stream_encoder_set_metadata() was called with a null pointer but a block count > 0 + * - One of the metadata blocks contains an undefined type + * - It contains an illegal CUESHEET as checked by FLAC__format_cuesheet_is_legal() * - It contains an illegal SEEKTABLE as checked by FLAC__format_seektable_is_legal() * - It contains more than one SEEKTABLE block or more than one VORBIS_COMMENT block */ -- 2.7.4