After indexing the file, we are calling FFMS_GetFrame(83) and it will return the P frame with PTS=83083, which is correct.
but before the commit 13d9f01f, if we were to call FFMS_GetFrame(82), we were getting the B frame with PTS=82082. But after the commit, we are getting the P again (the P frame at PTS=83083)
Trying to call also FFFMS_GetFrame(81) and still return the same P frame (not the B frame we were expected)
I bisect the code using the sample code in your documentation and just call FFMS_GetFrame(82) (instead of FFMS_GetFrame(0) ) and printed the FFMS_Frame.PictType and check the YUV data as well.
I have a file with 84 video frames. The file has only 1 Key frame, which is at the beginning.
Here are the last 7 frames outputted by ffprobe -show_packets
Here are the frame type as show from ffprobe -show_frames
After indexing the file, we are calling FFMS_GetFrame(83) and it will return the P frame with PTS=83083, which is correct. but before the commit 13d9f01f, if we were to call FFMS_GetFrame(82), we were getting the B frame with PTS=82082. But after the commit, we are getting the P again (the P frame at PTS=83083)
Trying to call also FFFMS_GetFrame(81) and still return the same P frame (not the B frame we were expected)
I bisect the code using the sample code in your documentation and just call FFMS_GetFrame(82) (instead of FFMS_GetFrame(0) ) and printed the FFMS_Frame.PictType and check the YUV data as well.