Value: -2
The output format has changed, subsequent data will follow the new format. MediaCodec.OutputFormat returns the new format. Note, that you can also use the new MediaCodec.GetOutputFormat(int) method to get the format for a specific output buffer. This frees you from having to track output format changes.