libvlc_media_player_get_fps(aka FVlc::MediaPlayerGetFps) may returns a 0.0f if the fps is unspecified in some real time streams.
And the current code use its return value as denominator without check when caculating VideoFrameDuration. This can lead to an error that Engine cannot get pictures correctly from the sample pool because of the wrong duration.
Just check fps and set frame duration to 1 millisecond if fps is not greater than 0.0f can resolve this problem.
libvlc_media_player_get_fps
(akaFVlc::MediaPlayerGetFps
) may returns a 0.0f if the fps is unspecified in some real time streams. And the current code use its return value as denominator without check when caculatingVideoFrameDuration
. This can lead to an error that Engine cannot get pictures correctly from the sample pool because of the wrong duration. Just check fps and set frame duration to 1 millisecond if fps is not greater than 0.0f can resolve this problem.