Currently we tried using AVCodecContext->frame_number/fps to get the current time of the video, but this variable seem to only go up, so after a backward seek the calculated time is all messed up.
Can AVCodecContext->frame_number be used for this purpose? If so, how should it be used; if not, what then is the correct method?