<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jun 4, 2014, at 6:09 PM, Ricky Huang <<a href="mailto:rhuang.work@gmail.com">rhuang.work@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello all,</div><div><br></div><div>According to a LAS blog post here: <a href="http://blog.pkh.me/p/6-las-lossy-audio-spotter.html">http://blog.pkh.me/p/6-las-lossy-audio-spotter.html</a>. It says that "the buffer is composed of couples of real and imaginary floats except for the two first ones which are the real parts of the first and last bins…" under the "Processing the audio data" section.</div><div><br></div><div>Does anyone know where that is documented? I looked on ffmpeg's doc (<a href="http://www.ffmpeg.org/doxygen/2.2/group__lavc__fft.html#ga745b8757713a5a0f0347eddcc6ccc9a4">http://www.ffmpeg.org/doxygen/2.2/group__lavc__fft.html#ga745b8757713a5a0f0347eddcc6ccc9a4</a>) and sees nothing on that. I also looked at the avf_showspectrum.c code and it doesn't seem to make the special case for those two positions.</div></div></blockquote><div><br></div><div>Clément, the author of the LAS article, answered the question for me. It is located in a comment in libavcodec/rdft.c:</div><div><br></div><div><div> /* i=0 is a special case because of packing, the DC term is real, so we<br> are going to throw the N/2 term (also real) in with it. */<br></div><br></div><div>and can be found here: <a href="http://www.ffmpeg.org/doxygen/2.2/rdft_8c_source.html#l00071">http://www.ffmpeg.org/doxygen/2.2/rdft_8c_source.html#l00071</a></div><div><br></div><div>Just in case anyone run into the same question in the future.</div><div><br></div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><br></div><div>Thanks in advance.</div></div></blockquote></div><br></body></html>