From: Michael Zucchi Date: Sat, 19 Oct 2019 23:16:24 +0000 (+1030) Subject: Only reference AVIOContext for getIOContext(). X-Git-Url: https://code.zedzone.au/cvs?a=commitdiff_plain;h=f39a10db1daf44c2429a19fa994a04ba4cde3d84;p=jjmpeg Only reference AVIOContext for getIOContext(). --- 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; }