mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Allow dolby vision transcode test to use alternative output mime type
On many devices (for example pixel 7) a dolby vision file can be decoded (either using dolby vision decoder or H265 decoder) but they can't be re-encoded to dolby vision. Allow test to encode to H265. The test now passes on pixel 7. It was getting skipped earlier. PiperOrigin-RevId: 711383794
This commit is contained in:
parent
9cc4532f84
commit
01c51d8475
@ -216,7 +216,7 @@ public final class HdrEditingTest {
|
||||
assumeDeviceSupportsHdrEditing(
|
||||
testId, format.buildUpon().setSampleMimeType(MimeTypes.VIDEO_H265).build());
|
||||
}
|
||||
assumeFormatsSupported(context, testId, /* inputFormat= */ format, /* outputFormat= */ format);
|
||||
assumeFormatsSupported(context, testId, /* inputFormat= */ format, /* outputFormat= */ null);
|
||||
Transformer transformer = new Transformer.Builder(context).build();
|
||||
MediaItem mediaItem = MediaItem.fromUri(Uri.parse(MP4_ASSET_DOLBY_VISION_HDR.uri));
|
||||
EditedMediaItem editedMediaItem =
|
||||
|
Loading…
x
Reference in New Issue
Block a user