mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(bt/blurdoird): enable bitpool snity checks
This commit is contained in:
@@ -305,7 +305,6 @@ OI_STATUS OI_CODEC_SBC_DecodeFrame(OI_CODEC_SBC_DECODER_CONTEXT *context,
|
|||||||
return OI_CODEC_SBC_CHECKSUM_MISMATCH;
|
return OI_CODEC_SBC_CHECKSUM_MISMATCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef OI_DEBUG
|
|
||||||
/*
|
/*
|
||||||
* Make sure the bitpool values are sane.
|
* Make sure the bitpool values are sane.
|
||||||
*/
|
*/
|
||||||
@@ -317,7 +316,6 @@ OI_STATUS OI_CODEC_SBC_DecodeFrame(OI_CODEC_SBC_DECODER_CONTEXT *context,
|
|||||||
ERROR(("Bitpool too large: %d (must be <= %ld)", context->common.frameInfo.bitpool, OI_SBC_MaxBitpool(&context->common.frameInfo)));
|
ERROR(("Bitpool too large: %d (must be <= %ld)", context->common.frameInfo.bitpool, OI_SBC_MaxBitpool(&context->common.frameInfo)));
|
||||||
return OI_STATUS_INVALID_PARAMETERS;
|
return OI_STATUS_INVALID_PARAMETERS;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Now decode the SBC data. Partial decode is not yet implemented for an SBC
|
* Now decode the SBC data. Partial decode is not yet implemented for an SBC
|
||||||
|
|||||||
Reference in New Issue
Block a user