lwlibav: Fix seeking around last frames.

This is a regression in 458cb1aa04.