title: timeoutUs in MediaCodec API android
body: <p>I'm using MediaCodec API in one of my app. I used the code from bigflake and the app is running pretty fine. But I'm still not able to understand the parameter <code>timeoutUs</code> in both the functions <code>dequeueInputBuffer()</code> and the function <code>dequeueOutputBuffer()</code> even after reading about it in the API reference.
  It would be great if anyone could nicely explain the use and effect of this parameter. And should it be same in both the above function calls ?</p>