diff options
author | Steve Kondik <shade@chemlab.org> | 2014-07-25 05:33:22 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2014-07-25 05:33:22 -0700 |
commit | a05c01b7806ce0ff2b110ad36dbfe5727cb8cd4f (patch) | |
tree | a5d0d048e3976331e7001ed2eea256c67dc10b2a /libFLAC/ogg_decoder_aspect.c | |
parent | d3c04b5f963ef86e1aeb74656151f175aefa4c48 (diff) | |
download | android_external_flac-shipping/cm-11.0.tar.gz android_external_flac-shipping/cm-11.0.tar.bz2 android_external_flac-shipping/cm-11.0.zip |
Upgrade to libFLAC 1.3.0cm-11.0-XNPH44S-bacon-5fa8c79c0bcm-11.0-XNPH05Q-tomato-9828f8e9cccm-11.0-XNPH05Q-bacon-5229c4ef56stable/cm-11.0-XNG3Cstable/cm-11.0-XNG2Sstable/cm-11.0-XNF9Xstable/cm-11.0-XNF8Ystable/cm-11.0shipping/cm-11.0
Change-Id: Ibd991640b7c85a96f4d1a43381acd199a6d197fd
Diffstat (limited to 'libFLAC/ogg_decoder_aspect.c')
-rw-r--r-- | libFLAC/ogg_decoder_aspect.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libFLAC/ogg_decoder_aspect.c b/libFLAC/ogg_decoder_aspect.c index 6974de3..daebe81 100644 --- a/libFLAC/ogg_decoder_aspect.c +++ b/libFLAC/ogg_decoder_aspect.c @@ -1,5 +1,6 @@ /* libFLAC - Free Lossless Audio Codec - * Copyright (C) 2002,2003,2004,2005,2006,2007 Josh Coalson + * Copyright (C) 2002-2009 Josh Coalson + * Copyright (C) 2011-2013 Xiph.Org Foundation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -37,11 +38,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 +208,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) { |