diff options
author | wm4 <wm4@nowhere> | 2013-11-07 22:15:44 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-07 22:15:44 +0100 |
commit | 1889c62b857fb1634399e40155cf53cfd0430a1e (patch) | |
tree | ac9bb54a2f74e4bd680c862e6c5821e7789b97b4 /audio/filter/af.h | |
parent | d74bac22b94196b99dd9c3b8df63af4fd2755b7d (diff) | |
download | mpv-1889c62b857fb1634399e40155cf53cfd0430a1e.tar.bz2 mpv-1889c62b857fb1634399e40155cf53cfd0430a1e.tar.xz |
af: remove a pointless macro
The code should be equivalent; a compatibility macro definition is left.
(It should be mass-replaced later.)
Diffstat (limited to 'audio/filter/af.h')
-rw-r--r-- | audio/filter/af.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/audio/filter/af.h b/audio/filter/af.h index dc776460aa..3cfdee85dd 100644 --- a/audio/filter/af.h +++ b/audio/filter/af.h @@ -182,14 +182,9 @@ double af_calc_delay(struct af_stream *s); * \{ */ -/* Helper function called by the macro with the same name only to be - called from inside filters */ int af_resize_local_buffer(struct af_instance *af, struct mp_audio *data); -/* Helper function used to calculate the exact buffer length needed - when buffers are resized. The returned length is >= than what is - needed */ -int af_lencalc(double mul, struct mp_audio *data); +#define RESIZE_LOCAL_BUFFER af_resize_local_buffer /** * \brief convert dB to gain value @@ -253,14 +248,4 @@ int af_test_output(struct af_instance *af, struct mp_audio *out); */ float af_softclip(float a); -/** \} */ // end of af_filter group, but more functions of this group below - -/** Memory reallocation macro: if a local buffer is used (i.e. if the - filter doesn't operate on the incoming buffer this macro must be - called to ensure the buffer is big enough. - * \ingroup af_filter - */ -#define RESIZE_LOCAL_BUFFER(a, d) \ - ((a->data->len < af_lencalc(a->mul, d)) ? af_resize_local_buffer(a, d) : AF_OK) - #endif /* MPLAYER_AF_H */ |