0
To calculate the RTP Packet Loss, we referred to
https://stackoverflow.com/questions/20265546/reading-rtcp-packets-from-an-ip-camera-using-ffmpeg.
It uses rtsp.h header and this file functions are not exposed. The only exposed headers in /libavformat when compiling FFMPEG are avio.h, libavformat.h and version.h as mentioned in the below link. https://www.ffmpeg.org/doxygen/3.0/rtpdec_8c.html#a7775bfcc7505137bfa63f5610908a659.
When ffmpeg API av_read_frame() is called, it internally creates a thread to read RTP packets and prints the RTP packet loss data as info logs ( For this, it uses ff_rtp_parse_packet and rtp_parse_queued_packet API calls) ffmpeg is utilizing RTPDemuxContext for reading the RTP packets and calculating RTP packet loss and it is not providing any interface to access the RTPDemuxContext as it is private.
As the ffmpeg internal functions are static and not accessible, please let us know how to proceed.