[FFmpeg-cvslog] avcodec/amr: replace #define by typedef

Ganesh Ajjanagadde git at videolan.org
Sat Nov 21 14:52:59 CET 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Mon Nov 16 17:01:18 2015 -0500| [8ffb3f08c6d44fe9ce7076288b1cd63edc56dad7] | committer: Ganesh Ajjanagadde

avcodec/amr: 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 at niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8ffb3f08c6d44fe9ce7076288b1cd63edc56dad7
---

 libavcodec/amr.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/amr.h b/libavcodec/amr.h
index 1ac73ab..727f8c3 100644
--- a/libavcodec/amr.h
+++ b/libavcodec/amr.h
@@ -28,9 +28,9 @@
 #include "avcodec.h"
 
 #ifdef AMR_USE_16BIT_TABLES
-#define R_TABLE_TYPE uint16_t
+typedef uint16_t R_TABLE_TYPE;
 #else
-#define R_TABLE_TYPE uint8_t
+typedef uint8_t R_TABLE_TYPE;
 #endif
 
 /**



More information about the ffmpeg-cvslog mailing list