Stay organized with collections
Save and categorize content based on your preferences.
InvalidBufferFlagsException
class InvalidBufferFlagsException : RuntimeException
Thrown when a buffer is marked with an invalid combination of flags (e.g. both BUFFER_FLAG_END_OF_STREAM
and BUFFER_FLAG_DECODE_ONLY
)
Summary
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# MediaCodec.InvalidBufferFlagsException\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nInvalidBufferFlagsException\n===========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaCodec.InvalidBufferFlagsException \"View this page in Java\") \n\n```\nclass InvalidBufferFlagsException : RuntimeException\n```\n\n|---|---|---|---|-----------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) ||||\n| | ↳ | [java.lang.Exception](../../java/lang/Exception.html#) |||\n| | | ↳ | [java.lang.RuntimeException](../../java/lang/RuntimeException.html#) ||\n| | | | ↳ | [android.media.MediaCodec.InvalidBufferFlagsException](#) |\n\nThrown when a buffer is marked with an invalid combination of flags (e.g. both [BUFFER_FLAG_END_OF_STREAM](/reference/kotlin/android/media/MediaCodec#BUFFER_FLAG_END_OF_STREAM:kotlin.Int) and [BUFFER_FLAG_DECODE_ONLY](/reference/kotlin/android/media/MediaCodec#BUFFER_FLAG_DECODE_ONLY:kotlin.Int))\n\nSummary\n-------"]]