encoder: Correctly handle running out of video buffers.

- Use frame rate from the video source to (more) correctly
  estimate the next video frame when there are no video
  buffers.
- Never mux audio when estimated audio time is behind
  the video time.

Change-Id: Ie9c72bf52c6d243b24a6cbca25361e9559e43ec7
2 files changed