media/libraries
andrewlewis e1e54b3e15 Avoid buffers used by OpenGL getting GC'ed
The `GlUtil` wrappers for attributes/uniforms allocate buffers that are passed into OpenGL, and it seems that the distorted output was caused by these buffers being garbage collected.

The issue was difficult to reproduce manually. Add a test that does repeated transcodes in a loop (marked `@Ignore` for now because it runs for a long time and requires network access so may be flaky) to make it easier to run many transcodes and look for inconsistent output. For now the consistency check is just based on the file size which is very likely to change if the actual video frames change.

Verified that the test fails before, and passes once the attributes and uniforms are stored in fields as in this CL.

PiperOrigin-RevId: 410581706
2021-11-19 15:03:14 +00:00
..
cast Fixes for some minor misc issues 2021-11-19 14:44:25 +00:00
common Populate ICY headers into MediaMetadata 2021-11-19 14:55:51 +00:00
database Update to androidx.media3 2021-10-27 09:12:46 +01:00
datasource Remove null keys from DefaultHttpDataSource#getResponseHeaders 2021-11-19 14:56:43 +00:00
datasource_cronet Update dependency versions 2021-11-19 14:42:25 +00:00
datasource_okhttp Update to androidx.media3 2021-10-27 09:12:46 +01:00
datasource_rtmp Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder_av1 Update to androidx.media3 2021-10-27 09:12:46 +01:00
decoder_ffmpeg Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder_flac Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder_opus Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder_vp9 Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
exoplayer Set LogSessionId on MediaCodec. 2021-11-19 14:59:19 +00:00
exoplayer_dash Add parsed essential/supplemental properties to the Representation. 2021-11-19 14:48:01 +00:00
exoplayer_hls HLS: Merge muxedAudioFormat into primary audio tracks 2021-11-19 14:53:40 +00:00
exoplayer_ima Update dependency versions 2021-11-19 14:42:25 +00:00
exoplayer_rtsp Fix sequence number calculation logic. 2021-11-19 15:00:12 +00:00
exoplayer_smoothstreaming Add @Deprecated to MediaSourceFactory deprecated overrides 2021-11-09 10:10:11 +00:00
exoplayer_workmanager Update to androidx.media3 2021-10-27 09:12:46 +01:00
extractor Populate ICY headers into MediaMetadata 2021-11-19 14:55:51 +00:00
session Remove statically initialized SessionResult 2021-11-09 10:10:10 +00:00
test_data Add parsed essential/supplemental properties to the Representation. 2021-11-19 14:48:01 +00:00
test_exoplayer_playback Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
test_session_common Migrate media3.session references from Window to MediaItem 2021-11-08 15:13:41 +00:00
test_session_current Fixes for some minor misc issues 2021-11-19 14:44:25 +00:00
test_utils Remove null keys from DefaultHttpDataSource#getResponseHeaders 2021-11-19 14:56:43 +00:00
test_utils_robolectric Migrate usages of Window-based Player methods 2021-11-09 10:07:30 +00:00
transformer Avoid buffers used by OpenGL getting GC'ed 2021-11-19 15:03:14 +00:00
ui Remove disabled types in StyledPlayerControlView when selecting tracks. 2021-11-19 14:54:49 +00:00
ui_leanback Fixes for some minor misc issues 2021-11-19 14:44:25 +00:00