git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
81703ce
)
implement avifile 7 compatibility.
author
kramm
<kramm>
Thu, 6 Jun 2002 10:57:05 +0000
(10:57 +0000)
committer
kramm
<kramm>
Thu, 6 Jun 2002 10:57:05 +0000
(10:57 +0000)
avi2swf/avi2swf.cc
patch
|
blob
|
history
diff --git
a/avi2swf/avi2swf.cc
b/avi2swf/avi2swf.cc
index
3c63920
..
5c1d0d2
100644
(file)
--- a/
avi2swf/avi2swf.cc
+++ b/
avi2swf/avi2swf.cc
@@
-14,7
+14,7
@@
extern "C" {
#include "../lib/args.h"
}
#include <avifile/version.h>
#include "../lib/args.h"
}
#include <avifile/version.h>
-#if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION==6)
+#if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
#include <avifile.h>
#include <aviplay.h>
#include <fourcc.h>
#include <avifile.h>
#include <aviplay.h>
#include <fourcc.h>
@@
-754,7
+754,8
@@
int main (int argc,char ** argv)
{
int x,y;
for(y=0;y<yblocksize;y++) {
{
int x,y;
for(y=0;y<yblocksize;y++) {
-#ifdef VERSION6
+ /* avifile 0.6 returns images upside down. versoins 5 and >=7 don't */
+#if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION==6)
U8*mydata = img->At(oldheight-(int)((yy*yblocksize+y)*reziscale));
#else
U8*mydata = img->At((int)((yy*yblocksize+y)*reziscale));
U8*mydata = img->At(oldheight-(int)((yy*yblocksize+y)*reziscale));
#else
U8*mydata = img->At((int)((yy*yblocksize+y)*reziscale));