Skip to content

Commit 9f38799

Browse files
author
ehmm
committed
Close stream before calling listener events
1 parent 6150428 commit 9f38799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/main/java/net/ypresto/androidtranscoder/engine/VideoTrackTranscoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private int drainEncoder(long timeoutUs) {
225225

226226
if ((mBufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0 || mDurationReached) {
227227
mIsEncoderEOS = true;
228-
mBufferInfo.set(0, 0, 0, mBufferInfo.flags);
228+
mBufferInfo.set(0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM);
229229
}
230230
if ((mBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) {
231231
// SPS or PPS, which should be passed by MediaFormat.

0 commit comments

Comments
 (0)