lwlibav: Fix current video frame number correction.