summaryrefslogtreecommitdiff
path: root/community-staging/synfig/build-fix.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-01 23:15:01 +0000
committerroot <root@rshg054.dnsready.net>2011-11-01 23:15:01 +0000
commit37a1064b8105764414f279ced442e6ba2f63bea1 (patch)
tree173b87cd6535e622eff464080b398e0330df72bc /community-staging/synfig/build-fix.patch
parent560562e36a27da267f2f4f7989806790192888ef (diff)
Tue Nov 1 23:15:01 UTC 2011
Diffstat (limited to 'community-staging/synfig/build-fix.patch')
-rw-r--r--community-staging/synfig/build-fix.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/community-staging/synfig/build-fix.patch b/community-staging/synfig/build-fix.patch
new file mode 100644
index 000000000..9124a517a
--- /dev/null
+++ b/community-staging/synfig/build-fix.patch
@@ -0,0 +1,43 @@
+diff -wbBur synfig-core/src/modules/mod_libavcodec/trgt_av.cpp synfig-core.my/src/modules/mod_libavcodec/trgt_av.cpp
+--- synfig-core/src/modules/mod_libavcodec/trgt_av.cpp 2011-06-05 13:04:07.000000000 +0400
++++ synfig-core.my/src/modules/mod_libavcodec/trgt_av.cpp 2011-06-14 14:32:49.000000000 +0400
+@@ -31,6 +31,10 @@
+ # include <config.h>
+ #endif
+
++#include <libavcodec/avcodec.h>
++#include <libavformat/avformat.h>
++#include <libswscale/swscale.h>
++
+ #include "trgt_av.h"
+
+ extern "C"
+@@ -116,14 +120,14 @@
+ picture = avcodec_alloc_frame();
+ if (!picture)
+ return NULL;
+- size = avpicture_get_size(pix_fmt, width, height);
++ size = avpicture_get_size((enum ::PixelFormat)pix_fmt, width, height);
+ picture_buf = (uint8_t *)malloc(size);
+ if (!picture_buf) {
+ av_free(picture);
+ return NULL;
+ }
+ avpicture_fill((AVPicture *)picture, picture_buf,
+- pix_fmt, width, height);
++ (enum ::PixelFormat)pix_fmt, width, height);
+ return picture;
+ }
+
+diff -wbBur synfig-core/src/modules/mod_png/mptr_png.cpp synfig-core.my/src/modules/mod_png/mptr_png.cpp
+--- synfig-core/src/modules/mod_png/mptr_png.cpp 2011-06-05 13:04:07.000000000 +0400
++++ synfig-core.my/src/modules/mod_png/mptr_png.cpp 2011-06-14 14:32:49.000000000 +0400
+@@ -309,7 +309,7 @@
+ float b=gamma().b_U8_to_F32((unsigned char)png_ptr->palette[row_pointers[y][x]].blue);
+ float a=1.0;
+ if(info_ptr->valid & PNG_INFO_tRNS)
+- a = (float)(unsigned char)png_ptr->trans[row_pointers[y][x]]*(1.0/255.0);
++ a = (float)(unsigned char)png_ptr->trans_alpha[row_pointers[y][x]]*(1.0/255.0);
+ surface_buffer[y][x]=Color(
+ r,
+ g,