received signal SIGSEGV, Segmentation fault when encode data in Nano.

I modify the 00_video_decode,when data returns in dec_capture_loop_fcn,i put it into encoder to encode.But i meet a strange problem,the gdb output is as follows,
Thread 14 “libvideoProcess” received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f9a71ae50 (LWP 24396)]
0x0000007fad72731c in NvxUpdateNvMMBufferToNvMediaImage () from /usr/lib/aarch64-linux-gnu/tegra/
(gdb) bt
#0 0x0000007fad72731c in NvxUpdateNvMMBufferToNvMediaImage () at /usr/lib/aarch64-linux-gnu/tegra/
#1 0x0000007fad7d3d1c in () at /usr/lib/aarch64-linux-gnu/tegra/
#2 0x0000007fb3c95628 in () at /usr/lib/aarch64-linux-gnu/tegra/
#3 0x0000007fb7f8a088 in start_thread (arg=0x7f9c5df36f) at pthread_create.c:463
#4 0x0000007fb562e4ec in thread_start () at …/sysdeps/unix/sysv/linux/aarch64/clone.S:78

I didn’t use NvBufferTransform function,but the error is realted to this.Now i am confused,because i analyzed it more than 2 days.

Anybody can suggests anything?

Thanks in advance.

Might be an issue in your modification. Could you share the modification?

Hi DaneLLL,
I found the reason yesterday,because the encode parameter is incorrect,now it works!
Thank you very much for your reply!