On some devices te library receives only several frames (in my case 18 frames), after that there is a error message
"E/MediaCodec: Codec reported err 0x80000000, actionCode 0, while in state 6/STARTED
E/VideoDecoder: RTSP video thread stopped due to 'null'"
(VideoDecoder.kt, catch at line 159
After that onVideoNalUnitReceived works, but onVideoFrameReceived stops