droidmediacodec: First attempt at limiting the number of input buffers to something sane