javacv拉取辅码流java直接crash了

我需用把网络摄像头的辅码流作为输入流,使用AVPacket的方式,只要一执行到:recorder.recordPacket(avPacket);这一句java就直接crash了,日志如下:


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffc05d15f1d, pid=1676, tid=9276
#
# JRE version: Java(TM) SE Runtime Environment (12.0+33) (build 12+33)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (12+33, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C  [avformat-58.dll+0xe5f1d]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\soft\eclipse\hs_err_pid1676.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

请问有人遇到过吗?

JNI 调用吗?
如果 JVM 是 64 位的,调用的动态链接库也必须是 64 位的;
如果 JVM 是 32 位的,调用的动态链接库也必须是 32 位的。
如果位数一致,也要保证 动态链接库与操作系统之间是兼容的,也就是说,两者的版本能够适配。
比如,动态链接库是基于windows10开发的,但是,实际运行环境在 windows7 上,或者,centos等其他操作系统上,这是不可以的。
最后就是指针访问错误了。