MediaCodec: handle end-of-file properly

This commit is contained in:
Julian Winkler
2024-07-19 22:08:21 +02:00
parent 4ed3fbd385
commit 29e5298178
3 changed files with 39 additions and 11 deletions

View File

@@ -7,6 +7,8 @@
#ifdef __cplusplus
extern "C" {
#endif
#undef android_media_MediaCodec_BUFFER_FLAG_END_OF_STREAM
#define android_media_MediaCodec_BUFFER_FLAG_END_OF_STREAM 4L
/*
* Class: android_media_MediaCodec
* Method: native_constructor