mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add checking based on number_type in the frame header
This commit is contained in:
@@ -222,6 +222,7 @@ FLAC__bool FLAC__frame_add_header(const FLAC__FrameHeader *header, FLAC__bool st
|
||||
if(!FLAC__bitbuffer_write_raw_uint32(bb, 0, FLAC__FRAME_HEADER_ZERO_PAD_LEN))
|
||||
return false;
|
||||
|
||||
FLAC__ASSERT(header->number_type == FLAC__FRAME_NUMBER_TYPE_FRAME_NUMBER);
|
||||
if(!FLAC__bitbuffer_write_utf8_uint32(bb, header->number.frame_number))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user