<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><style>body
p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="latin-charset" bgcolor="#ffffff"
text="#000000">
I did a git pull on a project, and started getting this message:<br>
<br>
<tt>Warning: data is not aligned! This can lead to a speedloss</tt><br>
<br>
This message is uttered by swscale because the U and V pictures are
not 16-byte aligned as required for SSE2, but only 8-byte aligned.<br>
<br>
The source code indicates this is a known problem - quoting
avcodec/utils.c:250-<br>
<br>
<tt>//STRIDE_ALIGN is 8 for SSE* but this does not work for SVQ1
chroma planes<br>
//we could change STRIDE_ALIGN to 16 for x86/sse but it would
increase the<br>
//picture size unneccessarily in some cases. The solution here is
not<br>
//pretty and better ideas are welcome!<br>
#if HAVE_MMX<br>
if(s->codec_id == CODEC_ID_SVQ1 || s->codec_id ==
CODEC_ID_VP5 ||<br>
s->codec_id == CODEC_ID_VP6 || s->codec_id ==
CODEC_ID_VP6F ||<br>
s->codec_id == CODEC_ID_VP6A || s->codec_id ==
CODEC_ID_DIRAC) {<br>
for (i = 0; i < AV_NUM_DATA_POINTERS; i++)<br>
linesize_align[i] = 16;<br>
}<br>
#endif</tt><br>
<br>
Might it be time to bump STRIDE_ALIGN to 16 if SSE2 is supported, as
the most common use case (swscale) requires it?<br>
<br>
Is there anything I can do to fix this without changing STRIDE_ALIGN
or an upstream change?<br>
<br>
Thanks in advance<br>
</body>
</html>