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:
sheenachhabra 2025-01-02 04:13:18 -08:00 committed by Copybara-Service
parent 9cc4532f84
commit 01c51d8475

View File

@ -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 =