title: Decoding the output buffer from MediaCodec
body: <p>I'm using the Android MediaCodec library to decode a video stored on the file system. I get an  output buffer that looks legit (with proper <code>bufferinfo.offset</code> and <code>size</code>). Its format seems to be 256 (which is JPEG). I tried decoding it with <code>BitmapFactory.decodeByteArray</code>, but the result was <code>null</code>.</p>
  
  <p>Does anyone know the correct way to ascertain the format of the output buffer? What's the correct way to start decoding the output byte arrays?</p>