diff options
author | Mike Melanson <mike@multimedia.cx> | 2004-03-14 04:04:08 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2004-03-14 04:04:08 +0000 |
commit | 3a278992bdd8138eeefc9df06878703480f27b1b (patch) | |
tree | 6891b1a6c885f6c5dd68843695739c53c8741c9b /libavformat/segafilm.c | |
parent | 9eef2b77b29189606148e1fdf5d6c8d7b52b08b0 (diff) | |
download | ffmpeg-3a278992bdd8138eeefc9df06878703480f27b1b.tar.gz |
remove numerous definitions of BE_*/LE_* macros; convert FOURCC_TAG ->
MKTAG/MKBETAG
Originally committed as revision 2886 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/segafilm.c')
-rw-r--r-- | libavformat/segafilm.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c index 3d1b48bbfa..fc54f3095c 100644 --- a/libavformat/segafilm.c +++ b/libavformat/segafilm.c @@ -27,22 +27,10 @@ #include "avformat.h" -#define BE_16(x) ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1]) -#define BE_32(x) ((((uint8_t*)(x))[0] << 24) | \ - (((uint8_t*)(x))[1] << 16) | \ - (((uint8_t*)(x))[2] << 8) | \ - ((uint8_t*)(x))[3]) - -#define FOURCC_TAG( ch0, ch1, ch2, ch3 ) \ - ( (long)(unsigned char)(ch3) | \ - ( (long)(unsigned char)(ch2) << 8 ) | \ - ( (long)(unsigned char)(ch1) << 16 ) | \ - ( (long)(unsigned char)(ch0) << 24 ) ) - -#define FILM_TAG FOURCC_TAG('F', 'I', 'L', 'M') -#define FDSC_TAG FOURCC_TAG('F', 'D', 'S', 'C') -#define STAB_TAG FOURCC_TAG('S', 'T', 'A', 'B') -#define CVID_TAG FOURCC_TAG('c', 'v', 'i', 'd') +#define FILM_TAG MKBETAG('F', 'I', 'L', 'M') +#define FDSC_TAG MKBETAG('F', 'D', 'S', 'C') +#define STAB_TAG MKBETAG('S', 'T', 'A', 'B') +#define CVID_TAG MKBETAG('c', 'v', 'i', 'd') typedef struct { int stream; |