[vlc-commits] demux: avi: use define for _EVEN
Francois Cartegnie
git at videolan.org
Fri Dec 8 11:18:37 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Dec 8 10:57:56 2017 +0100| [2f39c10f37b0de6c470cd5ffdaa06459aac795dd] | committer: Francois Cartegnie
demux: avi: use define for _EVEN
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f39c10f37b0de6c470cd5ffdaa06459aac795dd
---
modules/demux/avi/avi.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 02ee01e9e7..790ab220d2 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -198,10 +198,7 @@ struct demux_sys_t
input_attachment_t **attachment;
};
-static inline off_t __EVEN( off_t i )
-{
- return (i & 1) ? i + 1 : i;
-}
+#define __EVEN(x) (((x) & 1) ? (x) + 1 : (x))
static mtime_t AVI_PTSToChunk( avi_track_t *, mtime_t i_pts );
static mtime_t AVI_PTSToByte ( avi_track_t *, mtime_t i_pts );
More information about the vlc-commits
mailing list