media/libraries
ibaker 7ae3d69e00 JpegMotionPhotoExtractor: Don't emit an image track with no metadata
The current implementation of `JpegMotionPhotoExtractor.sniff` returns
`true` for any image with Exif data (not just motion photos). Improving
this is tracked by b/324033919. In the meantime, when we 'extract' a
non-motion photo with `JpegMotionPhotoExtractor`, the result is
currently a single empty image track and no video track (since there's
no video, since this isn't a motion photo). This 'empty' image track
is usually used to transmit metadata about the video parts of the
image file (in the form of `MotionPhotoMetadata`), but this metadata is
also (understandably) absent for non-motion photos. Therefore there's
no need to emit this image track at all, and it's clearer to emit no
tracks at all when extracting a non-motion photo using
`JpegMotionPhotoExtractor`.

This change also removes a `TODO` that is misplaced, since there's no
image bytes being emitted here (and never was).

PiperOrigin-RevId: 604688053
2024-02-06 10:22:18 -08:00
..
cast Return empty timeline when media info is null 2023-11-20 09:55:36 -08:00
common Include nullness of RequestMetadata.extras in equals method 2024-02-06 06:58:51 -08:00
container Remove empty container/src/androidTest directory 2023-12-11 10:41:51 -08:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Add supportsMimeType API to bitmapLoader 2024-01-12 13:49:38 -08:00
datasource_cronet Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
datasource_okhttp Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Satisfy nullness checker correctness by using local variable 2023-10-31 12:56:32 +00:00
decoder_av1 Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_ffmpeg Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_flac Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_midi MidiExtractor: mark only the first sample as key-frame 2023-11-21 07:39:46 -08:00
decoder_opus Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_vp9 Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
effect Update javadoc to be the right DrawableOverlay class. 2024-02-05 09:13:40 -08:00
exoplayer Check sampleMimeType rather than containerMimeType for images 2024-02-06 09:31:37 -08:00
exoplayer_dash Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
exoplayer_hls Fix HlsPlaybackTest flakiness 2024-02-01 03:58:37 -08:00
exoplayer_ima Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
exoplayer_rtsp Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
exoplayer_smoothstreaming Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor JpegMotionPhotoExtractor: Don't emit an image track with no metadata 2024-02-06 10:22:18 -08:00
muxer Add regression test of skipping empty track when writing MP4 2024-01-31 10:31:52 -08:00
session Add constructor that takes only a Context 2024-02-06 08:47:03 -08:00
test_data JpegMotionPhotoExtractor: Don't emit an image track with no metadata 2024-02-06 10:22:18 -08:00
test_exoplayer_playback Disable 'skip buffers with identical release times' in GTS tests 2024-01-22 03:27:17 -08:00
test_session_common Add session extras to the state of the controller 2023-11-21 14:32:33 -08:00
test_session_current Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
test_utils Test: Remove assertions from test infra. 2024-02-02 05:57:30 -08:00
test_utils_robolectric Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
transformer Clearer testing of isEnded state of AudioGraphInput. 2024-02-06 10:00:24 -08:00
ui Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
ui_leanback Bump effect and leanback minSdk to 19 2024-01-10 07:22:00 -08:00
lint.xml Update recommended way to suppress @UnstableApi errors in lint.xml 2023-11-15 02:34:40 -08:00