From f39a10db1daf44c2429a19fa994a04ba4cde3d84 Mon Sep 17 00:00:00 2001 From: Michael Zucchi Date: Sun, 20 Oct 2019 09:46:24 +1030 Subject: [PATCH] Only reference AVIOContext for getIOContext(). --- src/notzed.jjmpeg/jni/jj-avformatcontext.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/notzed.jjmpeg/jni/jj-avformatcontext.c b/src/notzed.jjmpeg/jni/jj-avformatcontext.c index 643e959..040be6b 100644 --- a/src/notzed.jjmpeg/jni/jj-avformatcontext.c +++ b/src/notzed.jjmpeg/jni/jj-avformatcontext.c @@ -43,7 +43,8 @@ jint AVFormatContext_OnLoad(JavaVM *vmi, JNIEnv *env) { REF_object(AVInputFormat, AVFormatContext, InputFormat, iformat) REF_object(AVOutputFormat, AVFormatContext, OutputFormat, oformat) -GS_object(AVIOContext, AVFormatContext, IOContext, pb) +REF_object(AVIOContext, AVFormatContext, IOContext, pb) +SET_object(AVFormatContext, IOContext, pb) GET_prim(jint, AVFormatContext, CtxFlags, ctx_flags) GET_prim(jint, AVFormatContext, NumStreams, nb_streams) @@ -255,6 +256,7 @@ JNIEXPORT void JNICALL Java_au_notzed_jjmpeg_AVFormatContext_findStreamInfo for (int i=0;iGetObjectArrayElement(env, joptions, i), options[i], 1); } + return; } -- 2.39.2