add checking based on number_type in the frame header

This commit is contained in:
Josh Coalson
2001-07-16 18:08:25 +00:00
parent 9608463921
commit 0fb3ee8f62
4 changed files with 8 additions and 0 deletions

View File

@@ -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;