Skip to content

Commit

Permalink
Update mediacodec_wrapper.c
Browse files Browse the repository at this point in the history
  • Loading branch information
zhubinsheng committed Feb 10, 2023
1 parent 33de102 commit 08dcfb4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libavcodec/mediacodec_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,6 @@ int ff_AMediaCodec_configure(FFAMediaCodec* codec, const FFAMediaFormat* format,
(*env)->CallVoidMethod(env, codec->object, codec->jfields.configure_id, format->object, surface, NULL, flags);
if (flags & codec->CONFIGURE_FLAG_ENCODE) {
if (surface && !codec->jfields.set_input_surface_id) {
av_log(ctx, AV_LOG_ERROR, "System doesn't support setInputSurface\n");
return AVERROR_EXTERNAL;
}

Expand Down Expand Up @@ -1736,7 +1735,7 @@ int ff_AMediaCodec_cleanOutputBuffers(FFAMediaCodec *codec)
int mediacodec_jni_signalEndOfInputStream(FFAMediaCodec *ctx)
{
JNIEnv *env = NULL;
FFAMediaCodecJni *codec = (FFAMediaCodecJni *)ctx;
FFAMediaCodec *codec = (FFAMediaCodec *)ctx;

JNI_GET_ENV_OR_RETURN(env, codec, AVERROR_EXTERNAL);

Expand Down

0 comments on commit 08dcfb4

Please sign in to comment.