lwlibav: Use index helper to get audio frame length.