[vlc-commits] Use force_align_arg_pointer for yadif crash on Windows XP

Naohiro KORIYAMA git at videolan.org
Wed Jan 11 16:13:45 CET 2012


vlc/vlc-1.2 | branch: master | Naohiro KORIYAMA <nkoriyama at gmail.com> | Tue Jan 10 15:11:04 2012 +0900| [93cedb9e6e08c8de57f37c547040b1c4e4fcf4ee] | committer: Jean-Baptiste Kempf

Use force_align_arg_pointer for yadif crash on Windows XP

This patch affects only on MinGW win32 builds.
Fixes #5793.

Signed-off-by: Rafaël Carré <funman at videolan.org>
(cherry picked from commit cef4b56a6f7b467300858bf125aaa7098481cb5d)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=93cedb9e6e08c8de57f37c547040b1c4e4fcf4ee
---

 modules/video_filter/deinterlace/yadif_template.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/video_filter/deinterlace/yadif_template.h b/modules/video_filter/deinterlace/yadif_template.h
index 0a4b63b..2591753 100644
--- a/modules/video_filter/deinterlace/yadif_template.h
+++ b/modules/video_filter/deinterlace/yadif_template.h
@@ -106,6 +106,9 @@
             "por       "MM"5, "MM"3 \n\t"\
             MOVQ"      "MM"3, "MM"1 \n\t"
 
+#if defined(__MINGW32__) && defined(WIN32) && !defined(WIN64)
+__attribute__((__force_align_arg_pointer__))
+#endif
 VLC_TARGET static void RENAME(yadif_filter_line)(uint8_t *dst,
                               uint8_t *prev, uint8_t *cur, uint8_t *next,
                               int w, int prefs, int mrefs, int parity, int mode)



More information about the vlc-commits mailing list