title: FFMPEG: How input data is fed to the decoders
body: <p>In FFMPEG, there are many video decoders integrated. One of them is H264. Now, in FFMPEG, which part of the decoder is taking care of providing the decoder with necessary input data to the decoder, so that it can decode it?</p>
  
  <p>I have gone through most of the code of the decoder, but am not able to find where fread of anything is happening. </p>
  
  <p>All i got to know is there is a file called <code>file.c</code> in <code>libavutils</code> directory of the FFMPEG source. In this file there is a read() function used. But, how is it that the h.264 decoder conveying this to the ffmpeg to send some data to decode. </p>
  
  <p>Any pointers regarding the same will be really helpful to me. Please do provide your valuable suggestions. </p>
  
  <p>Thanks in advance.</p>