Skip to content

Commit 0279f1a

Browse files
ychaparovcopybara-github
authored andcommitted
Do not try to encode 1x1 videos
Causes many failures in mobile harness tests PiperOrigin-RevId: 819786970
1 parent eb43f12 commit 0279f1a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libraries/transformer/src/androidTest/java/androidx/media3/transformer/TransformerGapsTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public void setUpTestId() {
6767
public void
6868
export_withThreeItemsHavingNoVideo_inAudioVideoSequence_insertsBlankFramesForAllItems()
6969
throws Exception {
70+
int outputWidth = 320;
71+
int outputHeight = 240;
7072
assumeFormatsSupported(
7173
context, testId, /* inputFormat= */ MP4_ASSET.videoFormat, /* outputFormat= */ null);
7274
Transformer transformer = new Transformer.Builder(context).build();
@@ -75,6 +77,12 @@ public void setUpTestId() {
7577
EditedMediaItemSequence.withAudioAndVideoFrom(
7678
ImmutableList.of(
7779
AUDIO_ONLY_MEDIA_ITEM, AUDIO_ONLY_MEDIA_ITEM, AUDIO_ONLY_MEDIA_ITEM)))
80+
.setEffects(
81+
new Effects(
82+
ImmutableList.of(),
83+
ImmutableList.of(
84+
Presentation.createForWidthAndHeight(
85+
outputWidth, outputHeight, Presentation.LAYOUT_SCALE_TO_FIT))))
7886
.build();
7987

8088
ExportTestResult result =

0 commit comments

Comments
 (0)