ports/multimedia/libmpeg3/files/patch-mpeg3ifo.c
Pav Lucistnik a5d987cd11 Libmpeg3 supports advanced editing and manipulation of MPEG streams.
Libmpeg3 provides a uniform front end for a large number of the MPEG
formats used in HDTV broadcasting.

It decodes:
* MPEG-1 Layer II Audio
* MPEG-1 Layer III Audio
* MPEG-2 Layer III Audio
* MPEG-1 program streams
* MPEG-2 program streams
* MPEG-2 transport streams
* AC3 Audio
* MPEG-2 Video
* MPEG-1 Video
* IFO files
* VOB files

PR:		ports/77175
Submitted by:	Igor Pokrovsky <ip@doom.homeunix.org>
2005-02-08 23:18:00 +00:00

23 lines
562 B
C

--- mpeg3ifo.c.orig
+++ mpeg3ifo.c
@@ -1,4 +1,4 @@
-#include <byteswap.h>
+//#include <byteswap.h>
#include <dirent.h>
#include <fcntl.h>
#include <stdlib.h>
@@ -9,6 +9,14 @@
#include "ifo.h"
#include "mpeg3private.h"
#include "mpeg3protos.h"
+
+#define bswap_16(x) ((((x) << 8) & 0xff00) | \
+ (((x) >> 8) & 0x00ff))
+
+#define bswap_32(x) ((((x) << 24) & 0xff000000) | \
+ (((x) << 8) & 0x00ff0000) | \
+ (((x) >> 8) & 0x0000ff00) | \
+ (((x) >> 24) & 0x000000ff))
typedef struct
{