Fixed few issues seen in CTS tests

Buffer managers are reset to init state in reset()

Return picture type of picture being output instead of picture decoded

Read start code only if input bitstream has enough bytes

Change-Id: Ic158d9dbff6d6b5295173b6ff2a4c6d6da66115f
17 files changed