libstagefright: Add support for frame-by-frame mode
From cm-10.1