Skip to content

Commit

Permalink
使用v2版软编
Browse files Browse the repository at this point in the history
  • Loading branch information
李明艺 committed Sep 18, 2018
1 parent 45cf9e5 commit 2e021ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions codec/src/main/java/com/lmy/codec/encoder/Encoder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import android.graphics.SurfaceTexture
import android.media.MediaCodec
import android.media.MediaFormat
import android.opengl.EGLContext
import com.lmy.codec.encoder.impl.SoftVideoEncoderImpl
import com.lmy.codec.encoder.impl.SoftVideoEncoderV2Impl
import com.lmy.codec.encoder.impl.VideoEncoderImpl
import com.lmy.codec.entity.CodecContext
Expand Down Expand Up @@ -52,7 +51,7 @@ interface Encoder : SurfaceTexture.OnFrameAvailableListener {
return if (CodecContext.CodecType.HARD == context.codecType) {
VideoEncoderImpl(context, textureId, eglContext, onPreparedListener)
} else {
SoftVideoEncoderImpl(context, textureId, eglContext, onPreparedListener)
SoftVideoEncoderV2Impl(context, textureId, eglContext, onPreparedListener)
}
}

Expand Down

0 comments on commit 2e021ae

Please sign in to comment.