Thanks !
I have been playing with the code today and I wonder why you choose to use avg_frame_rate rather than r_frame_rate ?
I have few samples (TS File mostly) whose frame rate was incorrectly detected by LAVFSplitter but not by VLC and mplayer. I saw that r_frame_rate was correct so I had a look to VLC and mplayer source code and they do use r_frame_rate rather than avg_frame_rate. I
modified a bit the code to do more testing and so far all the samples I have tested have worked.
Also I have been tracking down a bug with incorrect aspect ratio with some TS file but it is highly strange, ffprobe does detect the AR correctly but using a debug build of LAVFSplitter I see that the aspect ratio is not detected. I use ffprobe compiled at the same time than the libs used by the splitter and looking at ffprobe code I can't see why it does not work.