[FFmpeg-cvslog] swr: fix alignment issue caused by 8ch sse functions
Rainer Hochecker
git at videolan.org
Wed Jun 17 22:09:41 CEST 2015
ffmpeg | branch: release/2.2 | Rainer Hochecker <fernetmenta at online.de> | Wed May 13 18:31:27 2015 +0200| [02c51e05640c4610e5ad5ee3e911497dbdf52de7] | committer: Michael Niedermayer
swr: fix alignment issue caused by 8ch sse functions
Fix crash when doing 8 ch conversion from apps compiled with MSVS
Thanks to Ronald for giving this hint:
https://ffmpeg.org/pipermail/ffmpeg-devel/2015-May/173049.html
Reviewed-by: "Ronald S. Bultje" <rsbultje at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit adb7372f7495927a226edf9b8e1d0ac9453985ea)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=02c51e05640c4610e5ad5ee3e911497dbdf52de7
---
libswresample/swresample.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index 68c53e6..6baf157 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -23,6 +23,7 @@
#include "audioconvert.h"
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
+#include "libavutil/internal.h"
#include <float.h>
@@ -758,8 +759,8 @@ int swr_is_initialized(struct SwrContext *s) {
return !!s->in_buffer.ch_count;
}
-int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_count,
- const uint8_t *in_arg [SWR_CH_MAX], int in_count){
+int attribute_align_arg swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_count,
+ const uint8_t *in_arg [SWR_CH_MAX], int in_count){
AudioData * in= &s->in;
AudioData *out= &s->out;
More information about the ffmpeg-cvslog
mailing list