Add warning that md5 functions are used elsewhere

This commit is contained in:
Martijn van Beurden 2023-02-21 08:16:46 +01:00 committed by GitHub
parent 771eb050e7
commit 3baaf23faa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -40,6 +40,14 @@ FLAC_API FLAC__bool FLAC__stream_encoder_disable_instruction_set(FLAC__StreamEnc
FLAC_API FLAC__bool FLAC__stream_encoder_disable_constant_subframes(FLAC__StreamEncoder *encoder, FLAC__bool value);
FLAC_API FLAC__bool FLAC__stream_encoder_disable_fixed_subframes(FLAC__StreamEncoder *encoder, FLAC__bool value);
FLAC_API FLAC__bool FLAC__stream_encoder_disable_verbatim_subframes(FLAC__StreamEncoder *encoder, FLAC__bool value);
/*
* The following two routines were intended as debug routines and are not
* in the public headers, but SHOULD NOT CHANGE! It is known they are used
* in some non-audio projects needing every last bit of performance.
* See https://github.com/xiph/flac/issues/547 for details. These projects
* provide their own prototypes, so changing the signature of these
* functions would break building.
*/
FLAC_API FLAC__bool FLAC__stream_encoder_set_do_md5(FLAC__StreamEncoder *encoder, FLAC__bool value);
FLAC_API FLAC__bool FLAC__stream_encoder_get_do_md5(const FLAC__StreamEncoder *encoder);

View File

@ -1565,6 +1565,14 @@ FLAC_API FLAC__bool FLAC__stream_encoder_set_streamable_subset(FLAC__StreamEncod
return true;
}
/*
* The following routine was intended as debug routine and is not in the
* public headers, but SHOULD NOT CHANGE! It is known is is used in
* some non-audio projects needing every last bit of performance.
* See https://github.com/xiph/flac/issues/547 for details. These projects
* provide their own prototype, so changing the signature of this function
* would break building.
*/
FLAC_API FLAC__bool FLAC__stream_encoder_set_do_md5(FLAC__StreamEncoder *encoder, FLAC__bool value)
{
FLAC__ASSERT(0 != encoder);