Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ public class PassthroughTranscoderShould {
private static final long SAMPLE_TIME = 21;
private static final int BUFFER_SIZE = 512;

private final ByteBuffer outputBuffer = ByteBuffer.allocate(1);

private static final long CURRENT_PRESENTATION_TIME = 42;
private static final long SELECTION_START = 16;
private static final long SELECTION_END = 64;

@Mock private MediaSource mediaSource;
@Mock private MediaTarget mediaTarget;
@Mock private MediaCodec.BufferInfo outputBufferInfo;
@Mock private ByteBuffer outputBuffer;

@Mock private MediaFormat sourceMediaFormat;

Expand All @@ -59,7 +60,7 @@ public class PassthroughTranscoderShould {

@Before
public void setup() throws Exception {
MockitoAnnotations.initMocks(this);
MockitoAnnotations.openMocks(this);

fullMediaRange = new MediaRange(0, Long.MAX_VALUE);
trimmedMediaRange = new MediaRange(SELECTION_START, SELECTION_END);
Expand Down
Loading