Fix non-dlsym resolution.
authorMichael Zucchi <notzed@gmail.com>
Tue, 16 Jul 2019 09:55:37 +0000 (19:25 +0930)
committerMichael Zucchi <notzed@gmail.com>
Tue, 16 Jul 2019 09:55:37 +0000 (19:25 +0930)
src/notzed.jjmpeg/jni/jj-avpacket.c
src/notzed.jjmpeg/jni/jj-avpacket.def

index fe2f3e1..90ab16c 100644 (file)
@@ -86,12 +86,12 @@ JNIEXPORT jobject JNICALL Java_au_notzed_jjmpeg_AVPacket_getData__J
        AVPacket *packet = NativeZ_getP(env, jpacket);
 
        if (packet->size < size) {
-               if (av_grow_packet(packet, size - packet->size) != 0) {
+               if (DLCALL(av_grow_packet)(packet, size - packet->size) != 0) {
                        nativez_ThrowOutOfMemoryError(env, "Unable to grow packet");
                        return NULL;
                }
        } else {
-               av_shrink_packet(packet, size);
+               DLCALL(av_shrink_packet)(packet, size);
        }
        
        if (nativez_NonNull(env, "No data pointer", packet->data))
index 92c42ae..f4fd5b9 100644 (file)
@@ -6,6 +6,8 @@ header avcodec libavcodec/avcodec.h {
        av_packet_rescale_ts
 
        av_init_packet
+       av_grow_packet
+       av_shrink_packet
 }
 
 java AVPacket au/notzed/jjmpeg/AVPacket {