title: Android MediaCodec API video plays too fast
body: <p>I'm currently working with Android Jelly Bean MediaCodec API to develop a simple video player.  </p>
  
  <p>I extract tracks, play audio and video in separate threads. The problem is that video track always is played too fast.</p>
  
  <p>Where can be the problem hidden?<br>
  Both audio and video are treated almost the same way, except audio is played via AudioTrack and video is rendered to the surface.</p>