<div dir="ltr"><div><div>With like <font face="courier new, monospace">__attribute__((aligned(32))), <span style="color:rgb(54,0,12);font-size:11px;line-height:16.1875px"> __attribute__</span><span style="color:rgb(54,0,12);font-size:11px;line-height:16.1875px">((</span>aligned<span style="color:rgb(54,0,12);font-size:11px;line-height:16.1875px">(4))), or </span><font color="#36000c"><span style="font-size:11px;line-height:16.1875px">__attribute__((packed))</span></font><span style="color:rgb(54,0,12);font-size:11px;line-height:16.1875px"> </span></font><span style="color:rgb(54,0,12);font-family:Verdana,sans-serif;font-size:11px;line-height:16.1875px"> (</span><a href="http://www.aleph1.co.uk/chapter-10-arm-structured-alignment-faq">http://www.aleph1.co.uk/chapter-10-arm-structured-alignment-faq</a>)</div>
</div><div><br></div><div style>Example:</div><div><font face="courier new, monospace">unsigned char request[BUFFER_SIZE] __attribute__((aligned(32)));</font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/3/26 Alexey Belkevich <span dir="ltr"><<a href="mailto:belkevich@mlsdev.com" target="_blank">belkevich@mlsdev.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Also, I found this note in avcodec_decode_audio4 description</div><div><br></div><div><span style="font-family:Roboto,sans-serif;font-size:14px;line-height:19px">You might have to align the input buffer. The alignment requirements depend on the CPU and the decoder</span> </div>
<div>(<a href="http://ffmpeg.org/doxygen/trunk/group__lavc__decoding.html#ga834bb1b062fbcc2de4cf7fb93f154a3e" target="_blank">http://ffmpeg.org/doxygen/trunk/group__lavc__decoding.html#ga834bb1b062fbcc2de4cf7fb93f154a3e</a>)</div>
<div><br></div><div>Is anyone know what it means? And how I can align buffer?</div><div class="HOEnZb"><div class="h5"><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px">
<span><div><div><div>Hello!
</div><div>I'm building an iOS audio player. I've tested playback in iOS Simulator (i386) and everything was fine. But when I've tested it on iPhone (ARM) there was only noise. Other formats are playing fine.</div>
<div>I've done little research, and there what I found:</div><div>1) av_read_frame - returns the same data on both device and simulator (I've checked it in packet->data)</div><div>2) avcodec_decode_audio4 - returns DIFFERENT data on device and simulator (I've checked it in frame->data)</div>
<div><br></div><div>Can it be related to ffmpeg compiling options?</div><div>Any ideas?</div><div><br></div><div><div>-- </div><div>Alexey Belkevich</div><div><br></div></div>
</div></div></span>
</blockquote>
<div>
<br>
</div>
</div></div><br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>