]> gitweb @ CieloNegro.org - pkgsrc-cinelerra-cv.git/blob - patches/patch-mpeg3ifo_c
wip...
[pkgsrc-cinelerra-cv.git] / patches / patch-mpeg3ifo_c
1 $NetBSD$
2
3 --- libmpeg3/mpeg3ifo.c.orig    2010-01-29 06:11:05.000000000 +0000
4 +++ libmpeg3/mpeg3ifo.c
5 @@ -1,4 +1,3 @@
6 -#include <byteswap.h>
7  #include <dirent.h>
8  #include <fcntl.h>
9  #include <stdlib.h>
10 @@ -6,10 +5,19 @@
11  #include <sys/types.h>
12  #include <unistd.h>
13  
14 +#include "config.h"
15  #include "ifo.h"
16  #include "mpeg3private.h"
17  #include "mpeg3protos.h"
18  
19 +#define bswap_16(x) ((((x) << 8) & 0xff00) | \
20 +                     (((x) >> 8) & 0x00ff))
21 +
22 +#define bswap_32(x) ((((x) << 24) & 0xff000000) | \
23 +                     (((x) <<  8) & 0x00ff0000) | \
24 +                     (((x) >>  8) & 0x0000ff00) | \
25 +                     (((x) >> 24) & 0x000000ff))
26 +
27  typedef struct
28  {
29  // Bytes relative to start of stream.