media/libraries/test_data/src/test/assets/media
andrewlewis da05a1a66b Fix handling of CBR audio in some AVI files
Before this change, the value of the `dwLength` in the stream header was
interpreted as the number of chunks in the file. Seeking and timestamp
calculation use the media duration and total chunk count. However, in some
files the `dwLength` field appears not to store the number of chunks. For
example, there are CBR MP3 and AC3 files where this field seems to store the
total number of bytes of compressed media instead. That caused seeking and
timestamp calculation to give much smaller values than expected (because the
`dwLength` is very large), which broke seeking.

Work around this using the `idx1` index header if present. We only support
audio formats where every audio sample is a sync sample in AVI, and all chunks
should therefore be listed in this index. Based on testing on many sample AVI
files this gives a reliable total chunk count and fixes seeking.

The test media file is a transcoded version of Big Buck Bunny but manually
edited to overwrite the length, rate and sample size header files to simulate
the error case.

PiperOrigin-RevId: 705103651
2024-12-11 07:43:57 -08:00
..
ad-responses Update to androidx.media3 2021-10-27 09:12:46 +01:00
amr Add option to enable index-based seeking in AmrExtractor 2024-08-20 07:17:26 -07:00
avi Fix handling of CBR audio in some AVI files 2024-12-11 07:43:57 -08:00
avif Support AVIF in exoplayer 2024-05-15 08:04:41 -07:00
binary Update to androidx.media3 2021-10-27 09:12:46 +01:00
bmp Add BmpExtractor 2023-09-04 10:37:28 -07:00
dash Allow track selection parameters to be set in ExoPlayerAssetLoader. 2024-12-02 05:04:26 -08:00
download-actions Update to androidx.media3 2021-10-27 09:12:46 +01:00
drm Update to androidx.media3 2021-10-27 09:12:46 +01:00
dvbsi Update to androidx.media3 2021-10-27 09:12:46 +01:00
flac Update to androidx.media3 2021-10-27 09:12:46 +01:00
flv Update to androidx.media3 2021-10-27 09:12:46 +01:00
heif Add heif extractor 2023-09-07 00:31:04 -07:00
hls Add JSON asset list parser 2024-11-19 04:41:17 -08:00
id3 Update to androidx.media3 2021-10-27 09:12:46 +01:00
jpeg Add SurfaceAssetLoader 2024-07-08 11:33:05 -07:00
m3u8 Schedule refresh for all the playing playlists for HLS live stream 2024-06-13 03:52:16 -07:00
midi Add support for multiple mid-track tempo changes 2022-09-30 16:17:58 +00:00
mka Map VORBIS channel layout to Android layout 2023-12-05 03:01:32 -08:00
mkv Add MKV test assets with overlapping SSA and SRT subtitles 2023-07-20 10:14:50 +01:00
mp3 MP3: Use bytes field from VBRI frame instead of deriving from ToC 2024-11-26 06:18:29 -08:00
mp4 Rename terminologies as per the MP4-AT spec 2024-12-06 09:58:11 -08:00
mpd Add test and formatting changes 2024-05-22 15:08:52 +01:00
offline Remove deprecated ActionFile and ActionFileUpgradeUtil 2022-02-07 11:44:22 +00:00
ogg Permit duplicate Opus headers 2022-05-31 13:55:14 +00:00
png Move bitmap coordinate flip out of fragment shader 2024-05-21 02:31:43 -07:00
rtsp Merge pull request #162 from ittiam-systems:rtp-mp4a-latm 2022-10-24 10:49:25 +00:00
smooth-streaming Add fields next object request (nor) and next range request (nrr) 2023-08-22 15:25:03 +01:00
ssa Add UTF-16 encoded subtitle support to SsaDecoder 2023-05-03 17:04:35 +01:00
subrip Merge pull request #10750 from Stronger197:subrip_utf_16 2022-12-12 10:55:15 +00:00
ts Box: Implement ctts box 2024-05-14 04:32:04 -07:00
ttml Allow signed TTML region origins 2024-10-04 10:58:42 -07:00
tx3g Update to androidx.media3 2021-10-27 09:12:46 +01:00
vp9 Update to androidx.media3 2021-10-27 09:12:46 +01:00
wav Add unit test 2024-03-14 16:12:40 +00:00
webp Downscale bitmaps during decoding in Transformer 2024-09-03 07:53:13 -07:00
webvtt Don't emit a CuesWithTiming for zero-duration Subtitle events 2024-03-15 05:26:21 -07:00
xmp Move BoxesTest.java into muxer module 2023-02-17 11:54:46 +00:00