mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-17 21:00:51 +00:00
avcodec/resample2: replace #define by typedef
See e.g https://stackoverflow.com/questions/1666353/are-typedef-and-define-the-same-in-c for rationale. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
fafb10c30c
commit
736845b0cd
@ -34,9 +34,9 @@
|
|||||||
#ifndef CONFIG_RESAMPLE_HP
|
#ifndef CONFIG_RESAMPLE_HP
|
||||||
#define FILTER_SHIFT 15
|
#define FILTER_SHIFT 15
|
||||||
|
|
||||||
#define FELEM int16_t
|
typedef int16_t FELEM;
|
||||||
#define FELEM2 int32_t
|
typedef int32_t FELEM2;
|
||||||
#define FELEML int64_t
|
typedef int64_t FELEML;
|
||||||
#define FELEM_MAX INT16_MAX
|
#define FELEM_MAX INT16_MAX
|
||||||
#define FELEM_MIN INT16_MIN
|
#define FELEM_MIN INT16_MIN
|
||||||
#define WINDOW_TYPE 9
|
#define WINDOW_TYPE 9
|
||||||
@ -52,9 +52,9 @@
|
|||||||
#else
|
#else
|
||||||
#define FILTER_SHIFT 0
|
#define FILTER_SHIFT 0
|
||||||
|
|
||||||
#define FELEM double
|
typedef double FELEM;
|
||||||
#define FELEM2 double
|
typedef double FELEM2;
|
||||||
#define FELEML double
|
typedef double FELEML;
|
||||||
#define WINDOW_TYPE 24
|
#define WINDOW_TYPE 24
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user