lwlibav: Move the codes of importing AVIndexEntrys as common.