title: FFmpeg decode H264 video too slowly
body: <p>I am currently working on a project on iPhone using FFMpeg. I can decode all the formats I need but when I want to play a h264 video, ffmpeg decodes frames too slowly.</p>
  
  <p>I tried to see where the problem is. I think that the options from the compilation of the library are good, decoding and displaying the frames are made ​​on different threads. In the end, it seems that it is the function <code>avcodec_decode_video2</code> that takes too long (3 to 4 seconds to decode 30 frames).</p>