lwlibav: Simplify frame reading slightly.