libstagefright: Fix video encoder input buffer

Ported from cm10

Needed to avoid the encoder eating up all input buffers,
which leaves no buffer left for the camera sometimes

Change-Id: I0432cd87a9defd08725ac8831d7376edb98d7e18