1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Since the upgrade to 0.5.4 included most of the contents of the latest

patches, they must be reverted to just those relevant contents as of
the time when the first version (0.5.3) was imported.
This commit is contained in:
Stefan Eßer 2007-05-01 15:04:18 +00:00
parent bcd159e5e9
commit 92534c310f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191290
3 changed files with 4 additions and 74 deletions

View File

@ -20,35 +20,3 @@
env.Replace(CXXFILESUFFIX=".cpp")
@@ -48,7 +48,7 @@
env.Replace(CXXFILESUFFIX=".cpp")
-env.Append(CPPDEFINES={"_FILE_OFFSET_BITS": "64", "_LARGEFILE_SOURCE": None})
+env.Append(CPPDEFINES=[("_FILE_OFFSET_BITS", "64"), "_LARGEFILE_SOURCE"])
for v in ("CXX","LINK"):
if (v in os.environ):
@@ -62,11 +62,11 @@
if (not env.GetOption('clean')):
if (conf.TryAction('pkg-config --exists ao')[0]):
- conf.env.Append(CPPDEFINES={"HAVE_LIB_AO":None})
+ conf.env.Append(CPPDEFINES="HAVE_LIB_AO")
conf.env.ParseConfig('pkg-config --cflags --libs ao')
print "Checking for libao... found"
elif (conf.CheckLibWithHeader('ao', 'ao/ao.h', 'C')):
- conf.env.Append(CPPDEFINES={"HAVE_LIB_AO":None})
+ conf.env.Append(CPPDEFINES="HAVE_LIB_AO")
conf.env.Append(LIBS=['ao'])
print "Checking for libao... found"
else:
@@ -85,7 +85,7 @@
env.Replace(QT_LIB=qtlib)
if (debug<=0):
- env.Append(CPPDEFINES={"QT_NO_DEBUG": None})
+ env.Append(CPPDEFINES="QT_NO_DEBUG")
### FFMPEG

View File

@ -1,6 +1,6 @@
--- src/defines.h~ Sun Dec 11 21:13:26 2005
+++ src/defines.h Mon Apr 9 17:28:13 2007
@@ -40,16 +40,25 @@
+++ src/defines.h Mon Dec 19 23:05:03 2005
@@ -40,6 +40,12 @@
#endif
}
@ -11,16 +11,9 @@
+#define htom16(x) htobe16(x)
+#else
#if __BYTE_ORDER == __LITTLE_ENDIAN
-#define mbo32(x) (__bswap_constant_32(x))
+#define mbo32(x) \
+ ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \
+ (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24))
#define mbo32(x) (__bswap_constant_32(x))
#define htom32(x) (__bswap_32(x))
-#define mbo16(x) (__bswap_constant_16(x))
+#define mbo16(x) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
#define htom16(x) (__bswap_16(x))
#else
#define mbo32(x) (x)
@@ -50,6 +56,7 @@
#define htom32(x) (x)
#define mbo16(x) (x)
#define htom16(x) (x)

View File

@ -13,34 +13,3 @@
#include "types.h"
#include "pts.h"
#include "defines.h"
@@ -53,7 +53,7 @@
picture(filepos_t pos, pts_t _pts, int framerate, int aspectratio,
int sequencenumber, int picturetype, bool seqheader=false) :
position( pos ),
- pts((_pts&0xffffffffffffll) | ((uint64_t)( (framerate&0xf)|((aspectratio&0xf)<<4)|
+ pts((_pts&0xffffffffffll) | ((uint64_t)( (framerate&0xf)|((aspectratio&0xf)<<4)|
((sequencenumber&0x3ff)<<8)|((picturetype&0x3)<<18)|(seqheader?0x100000:0) )<<40))
{ }
picture() : position(0), pts(0)
@@ -66,7 +66,7 @@
pts_t getpts() const
{
pts_t l=pts&0xffffffffffll;
- return (l&0x8000000000ll) ? (l|0xffffff0000000000ll):l;
+ return (l ^ 0x8000000000ll) - 0x8000000000ll;
}
int getframerate() const
{
@@ -136,10 +136,10 @@
{
pic+=skipfirst;
int seq=pic;
- while (!p[seq].getseqheader())
+ while (seq > 0 && !p[seq].getseqheader())
--seq;
pic=pic-seq;
- while(p[seq].getsequencenumber()!=pic)
+ while(seq < pictures && p[seq].getsequencenumber()!=pic)
++seq;
return seq;
}