mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add some asserts
This commit is contained in:
@@ -649,14 +649,17 @@ bool stream_decoder_read_frame_(FLAC__StreamDecoder *decoder, bool *got_a_frame)
|
|||||||
/* no adjustment needed */
|
/* no adjustment needed */
|
||||||
break;
|
break;
|
||||||
case FLAC__CHANNEL_ASSIGNMENT_LEFT_SIDE:
|
case FLAC__CHANNEL_ASSIGNMENT_LEFT_SIDE:
|
||||||
|
assert(decoder->guts->frame.header.channels == 2);
|
||||||
if(channel == 1)
|
if(channel == 1)
|
||||||
bps++;
|
bps++;
|
||||||
break;
|
break;
|
||||||
case FLAC__CHANNEL_ASSIGNMENT_RIGHT_SIDE:
|
case FLAC__CHANNEL_ASSIGNMENT_RIGHT_SIDE:
|
||||||
|
assert(decoder->guts->frame.header.channels == 2);
|
||||||
if(channel == 0)
|
if(channel == 0)
|
||||||
bps++;
|
bps++;
|
||||||
break;
|
break;
|
||||||
case FLAC__CHANNEL_ASSIGNMENT_MID_SIDE:
|
case FLAC__CHANNEL_ASSIGNMENT_MID_SIDE:
|
||||||
|
assert(decoder->guts->frame.header.channels == 2);
|
||||||
if(channel == 1)
|
if(channel == 1)
|
||||||
bps++;
|
bps++;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user