title: FFmpeg AVFrame Audio Data Modification
body: <p>I'm trying to figure out how FFmpeg saves data in an <code>AVFrame</code> after the audio has been decoded. </p>
  
  <p>Basically, if I print the data in the <code>AVFrame-&gt;data[]</code> array I get a number of unsigned 8 bit integers that is the audio in raw format.</p>
  
  <p>From what I can understand from the FFmpeg doxygen, the format of the data is expressed in the <code>enum AVSampleFormat</code> and there are 2 main categories: interleaved and planar. In the interleaved type, the data is all kept in the first row of the <code>AVFrame-&gt;data</code> array with size <code>AVFrame-&gt;linesize[0]</code> while in the planar type each channel of the audio file is kept in a separate row of the <code>AVFrame-&gt;data</code> array and the arrays have as size <code>AVFrame-&gt;linesize[0]</code>. </p>
  
  <p>Is there a guide/tutorial that explains what do the numbers in the array mean for each of the formats?</p>