mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
V2: Use a single definition of MIN and MAX in sources
This commit is contained in:
committed by
Erik de Castro Lopo
parent
d30fe60fc6
commit
f029625591
@@ -37,11 +37,8 @@
|
||||
#include "FLAC/assert.h"
|
||||
#include "private/ogg_decoder_aspect.h"
|
||||
#include "private/ogg_mapping.h"
|
||||
#include "private/macros.h"
|
||||
|
||||
#ifdef max
|
||||
#undef max
|
||||
#endif
|
||||
#define max(x,y) ((x)>(y)?(x):(y))
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
@@ -210,7 +207,7 @@ FLAC__OggDecoderAspectReadStatus FLAC__ogg_decoder_aspect_read_callback_wrapper(
|
||||
}
|
||||
else if (ret == 0) {
|
||||
/* need more data */
|
||||
const size_t ogg_bytes_to_read = max(bytes_requested - *bytes, OGG_BYTES_CHUNK);
|
||||
const size_t ogg_bytes_to_read = flac_max(bytes_requested - *bytes, OGG_BYTES_CHUNK);
|
||||
char *oggbuf = ogg_sync_buffer(&aspect->sync_state, ogg_bytes_to_read);
|
||||
|
||||
if(0 == oggbuf) {
|
||||
|
||||
Reference in New Issue
Block a user